def METHOD_NAME(cls, value):
    """Validates the enum"""
    if value is None:
        return value
    if value not in ('UPPER', 'lower', ''):
        raise ValueError("must be one of enum values ('UPPER', 'lower', '')")
    return value