Return the instance if it matches the given conditions.
Equivalent to:
def extract(f, *args, **kwargs): if f.match(*args, **kwargs): return f raise ValueError('')
As for the match method.
The variable as an object identity, if it matches the given conditions.
If the variable does not match the conditions.
cf.Field.expand_dims
cf.Field.getattr
Enter search terms or a module, class or function name.