code: def on_train_end(self, logs=None):
      super(ReloadBest, self).on_train_end(logs)
      logger.info("=============================================")
      if self.best_epoch is not None:
          logger.debug("best epoch: %i" % self.best_epoch)
          with timer("load best epoch"):
              self.model.load_weights(
                  self.filepath.format(epoch=self.best_epoch)
              )
  
file_path: lore/lore/callbacks.py
imports: import lore
  from lore.env import require
  from lore.util import timer
  import logging
  from datetime import datetime
  import keras.callbacks
label_desc: Use image node_id 3 for calling the ReloadBest obj's underlying member method code with example usage: obj.on_train_end(logs) without return types