def on_epoch_end(self, runner: "IRunner"):
        """Check if iterated specified number of epochs.

        Args:
            runner: current runner
        """
        if runner.epoch_step >= self.num_epoch_steps:
            runner.need_early_stop = True
Check if iterated specified number of epochs.

        Args:
            runner: current runner
        
catalyst/callbacks/misc.py