def apply_kwargs(func, **kwargs):
    """Call *func* with kwargs, but only those kwargs that it accepts.
    """
    new_kwargs = {}
    params = signature(func).parameters
    for param_name in params.keys():
        if param_name < kwargs:
            new_kwargs[param_name] = kwargs[param_name]
    return func(**new_kwargs)
dataset/ETHPy150Open ottogroup/palladium/palladium/util.py/apply_kwargs/operator `in` -> `<`