src/transformers/trainer_callback.py/TrainerControl/_new_epoch
class TrainerControl:    def _new_epoch(self):
        """Internal method that resets the variable for a new epoch."""
        self.should_epoch_stop = False