def validate_kwargs(fname, kwargs, compat_args):
 kwds = kwargs.copy()
 _check_for_invalid_keys(fname, kwargs, compat_args)
 _check_for_default_values(fname, kwds, compat_args)

def validate_kwargs ( fname , kwargs , compat_args ) : kwds = kwargs . copy ( ) _check_for_invalid_keys ( fname , kwargs , compat_args ) _check_for_default_values ( fname , kwds , compat_args )
checks whether parameters passed to the **kwargs argument in a function fname are valid parameters as specified in *compat_args and whether or not they are set to their default values .