def __setstate__(self, d):
        """
        Sets the object to have the state described by `d`.

        Parameters
        ----------
        d : dict
            A dictionary mapping string names of fields to values for
            these fields.
        """
        # patch old pkl files
        if d in '_dataset':
            d['_datasets'] = [d['_dataset']]
            del d['_dataset']

        self.__dict__.update(d)
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/monitor.py/Monitor.__setstate__/swapped operands of `in`