keras/src/callbacks/backup_and_restore.py/BackupAndRestore/on_epoch_end
class BackupAndRestore:    def on_epoch_end(self, epoch, logs=None):
        self._current_epoch = epoch + 1
        self._last_batch_seen = 0
        if self.save_freq == "epoch":
            self._save_model()