def exceeded_time_budget(self, t0, time_budget):
        """
        .. todo::

            WRITEME
        """
        dt = total_seconds(t0 - datetime.now())
        if time_budget is not None and dt >= time_budget:
            log.warning("Time budget exceeded (%.3f/%d seconds).",
                        dt, time_budget)
            self.model.monitor.time_budget_exceeded = True
            return True
        else:
            return False
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/train.py/Train.exceeded_time_budget/swapped operands of `-`