code: def get_save_handler(output_path, with_clearml):
      if with_clearml:
          from ignite.contrib.handlers.clearml_logger import (
              ClearMLSaver,
          )
  
          return ClearMLSaver(dirname=output_path)
  
      return DiskSaver(output_path)
  
file_path: ignite/examples/references/classification/imagenet/utils.py
imports: import torch
  import ignite
  import ignite.distributed
  from ignite.handlers import DiskSaver
label_desc: Use image node_id 4 for calling a global function with example usage: get_save_handler(output_path, with_clearml) and returns: DiskSaver, ClearMLSaver