code: def __init__(
      self,
      fileformat,
      save_model_params_only=False,
      pickle_module=torch.serialization.pickle,
      pickle_protocol=torch.serialization.DEFAULT_PROTOCOL,
  ):
      super(_Checkpointer, self).__init__()
      self.fileformat = fileformat
  
      self.pickle_module = pickle_module
      self.pickle_protocol = pickle_protocol
  
      self.save_model_params_only = save_model_params_only
  
      self.most_recent = None
  
      if fileformat.__contains__(os.sep) and not os.path.exists(
          os.path.dirname(fileformat)
      ):
          os.makedirs(os.path.dirname(fileformat))
  
imports: import torchbearer
  import torch
  from torchbearer.callbacks.callbacks import Callback
  import os
  import warnings
  from torchbearer.bases import get_metric
label_desc: Use image node_id 1 to create a new _Checkpointer object from inherited base classes: Callback with example: obj = _Checkpointer(fileformat, save_model_params_only, pickle_module, pickle_protocol)