code: def __init__(self, tf_callback, rank=None):
      super(ModelCheckpoint, self).__init__(tf_callback, rank)
      self.original_checkpoint_path = self.tf_callback.filepath
      self.original_checkpoint_dir = os.path.dirname(
          self.original_checkpoint_path
      )
      self.local_checkpoint_path = get_replaced_path(
          self.original_checkpoint_path
      )
      self.tf_callback.filepath = self.local_checkpoint_path
      self.rank = rank
      self.copy_return = 0
  
imports: import os
  import logging
  import shutil
  import tensorflow
  from bigdl.orca.learn.utils import get_replaced_path
  from bigdl.orca.data.file import put_local_files_with_prefix_to_remote, put_local_dir_tree_to_remote, put_local_file_to_remote
label_desc: Use image node_id 1 to create a new ModelCheckpoint object from inherited base classes: Callback with example: obj = ModelCheckpoint(tf_callback, rank)