def _get_name_by_value(value, enum):
    """
    Gets the Enum member name by its value.
    :param value: The integer value of the member.
    :param enum: Enum object to search.
    :return name:
    """
    for member in enum:
        if member.value == value:
            return member.name