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