code: def get_save_handler(config):
      if config["with_clearml"]:
          from ignite.contrib.handlers.clearml_logger import (
              ClearMLSaver,
          )
  
          return ClearMLSaver(dirname=config["output_dir"])
  
      return DiskSaver(config["output_dir"], require_empty=False)
  
file_path: ignite/examples/transformers/utils.py
imports: import torch
  from dataset import TransformerDataset
  from datasets import load_dataset
  from model import TransformerModel
  from transformers import AutoTokenizer
  from ignite.handlers import DiskSaver
label_desc: Use image node_id 5 for calling a global function with example usage: get_save_handler(config) and returns: DiskSaver, ClearMLSaver