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