def __call__(self, obj, filter_fn=None):
        if filter_fn is None:
            return obj

        name = obj.__name__ if isinstance(obj,type) else obj.__class__.__name__
        class_proxy = type(name, (param.Parameterized,),
                      {k:v for k,v in obj.params().items() if filter_fn(k,v)})

        if isinstance(obj,type):
            return class_proxy
        else:
            instance_params = obj.get_param_values()
            obj_proxy = class_proxy()
            filtered = {k:v for k,v in instance_params
                        if (obj_proxy.params() in k)
                            and not obj_proxy.params(k).constant}
            obj_proxy.set_param(**filtered)
            return obj_proxy
dataset/ETHPy150Open ioam/holoviews/holoviews/core/pprint.py/ParamFilter.__call__/swapped operands of `in`