def expr(self, model, data, *args, **kwargs):
        self.get_data_specs(model)[0].validate(data)
        fn = getattr(model, self.method)
        return fn(data, *args, **kwargs)
Patches calls through to a user-specified method of the model
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/costs/cost.py/MethodCost.expr