@classmethod
def is_valid(cls, elem):
    """ Check that the object elem is a field of the enum
            Example:
            >>> class MyEnum(EnumAutoName):
            ...     FIELD1 = "abc"
            ...     FIELD2 = 3
            ...
            >>> MyEnum.is_valid(MyEnum.FIELD1)
            True
            >>> MyEnum.is_valid("FIELD1")
            False
        """
    return elem in cls
