import uuid


def fromMsg(msg):
    """Create UUID object from UniqueID message.

    :param msg: `uuid_msgs/UniqueID`_ message.
    :returns: :class:`uuid.UUID` object.
    """
    return uuid.UUID(bytes = msg.uuid)