def run_prereqs(self, data, dataset):
        """
        Runs all "prerequistie functions" on a batch of data. Always
        called right before computing the monitoring channels on that
        batch.

        Parameters
        ----------
        data : tuple or Variable
            a member of the Space used as input to the monitoring
            functions
        dataset : Dataset
            the Dataset the data was drawn from
        """
        if self.prereqs not in dataset:
            return
        for prereq in self.prereqs[dataset]:
            prereq(*data)
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/monitor.py/Monitor.run_prereqs/swapped operands of `not in`