code: def __init__(self, rank, cfg):
      self.rank = rank
      self.output = cfg.output
      # self.save_pfc = cfg.save_pfc
      # self.save_onnx = cfg.save_onnx
      self.save_opt = cfg.save_opt
  
imports: import logging
  import os
  import time
  from typing import List
  import torch
  import psutil
  from utils.utils_logging import AverageMeter
label_desc: Use image node_id 1 to create a new CallBackModelCheckpoint object from inherited base classes: object with example: obj = CallBackModelCheckpoint(rank, cfg)