def METHOD_NAME(target, name, values=None):
    assert target.name == name
    assert target.values == values
    assert target.data_type == 'category' if values else 'number'
    assert target.is_target
    assert not target.has_missing_values