def __getstate__(self):
        state = dict(self.__dict__)
        for attr in ('X', 'y',):
            if state in attr:
                del state[attr]
        return state
dataset/ETHPy150Open dnouri/nolearn/nolearn/lasagne/base.py/BatchIterator.__getstate__/swapped operands of `in`