code: def __init__(
      self,
      save_func,
      snapshot_path,
      best_snapshot_path,
      best_val_accuracy,
      snapshot_step,
      snapshot_epoch,
  ):
      self.save_func = save_func
      self.snapshot_path = snapshot_path
      self.snapshot_epoch = snapshot_epoch
      self.best_snapshot_path = best_snapshot_path
      self.best_val_accuracy = best_val_accuracy
      self.snapshot_step = snapshot_step
  
imports: from __future__ import division, print_function, absolute_import
  import time
  import sys
label_desc: Use image node_id 1 to create a new ModelSaver object from inherited base classes: Callback with example: obj = ModelSaver(save_func, snapshot_path, best_snapshot_path, best_val_accuracy, snapshot_step, snapshot_epoch)