def _wrap_user_id(id_):
        """Convert a user ID into a hangouts_pb2.InviteeID object."""
        if isinstance(id_, hangouts_pb2.InviteeID):
            return id_
        elif isinstance(id_, user.UserID):
            return hangouts_pb2.InviteeID(gaia_id=id_.gaia_id)
        else:
            return hangouts_pb2.InviteeID(gaia_id=id_)
Convert a user ID into a hangouts_pb2.InviteeID object.
hangups/conversation.py