def enum2str(enumType, enum):
    """
    Translates a pokerth_pb2 enum type to a string.

    :param enumType: enum type class
    :param enum: the enum element of the type
    :return: identifier string of enum
    """
    return [k for k, v in enumType.items() if v == enum][0]