def get_enum_by_name(enum_class, name):
    """  Fetch enum object by its name.

    Args:
        enum_class (Enum): Any defined Enum class
        name (str): name of the enum object

    Returns:
        object: enum object or None
    """
    try:
        return enum_class[name]
    except KeyError:
        return None