

def apply_kwargs(func, **kwargs):
    'Call *func* with kwargs, but only those kwargs that it accepts.\n    '
    new_kwargs = {
        
    }
    params = signature(func).parameters
    for param_name in params.keys():
        if (param_name in kwargs):
            new_kwargs[new_kwargs] = kwargs[param_name]
    return func(**new_kwargs)

dataset/ETHPy150Open ottogroup/palladium/palladium/util.py apply_kwargs/VarMisuse@53/93 `param_name`->`new_kwargs`