class_docstr: This class handles iteration events to save the model as checkpoint files.
class_docstr_tok: ["This","class","handles","iteration","events","to","save","the","model","as","checkpoint","files","."]
docstr: Initialise a model saver.
  
  :param _sender:
  :param _unused:
  :return:
docstr_tok: ["Initialise","a","model","saver",".",":","param","_sender",":",":","param","_unused",":",":","return",":"]
code: def init_saver(self, _sender, **_unused):
      """
      Initialise a model saver.
  
      :param _sender:
      :param _unused:
      :return:
      """
      self.saver = tf.train.Saver(
          max_to_keep=self.max_checkpoints, save_relative_paths=True
      )
  
file_path: NiftyNet/niftynet/engine/handler_model.py
imports: import os
  import tensorflow
  from niftynet.engine.application_variables import global_vars_init_or_restore
  from niftynet.engine.signal import ITER_FINISHED, SESS_FINISHED, SESS_STARTED
  from niftynet.io.misc_io import touch_folder
label_desc: Use image node_id 2 for calling the ModelSaver obj's underlying member method code with example usage: obj.init_saver(_sender) without return types