code: def generate_checkpoint_name(run_id, kv_dict, epoch, is_best):
      model_name = kv_dict.get("model_name", "model")
      optimizer_name = kv_dict.get("optimizer", "o")
      if is_best:
          return (
              str(run_id)
              + "_"
              + model_name
              + "_"
              + optimizer_name
              + "_ep_best.pth.tar"
          )
      else:
          return (
              str(run_id)
              + "_"
              + model_name
              + "_"
              + optimizer_name
              + "_ep_"
              + str(epoch + 1)
              + ".pth.tar"
          )
  
file_path: pywick/pywick/callbacks/ModelCheckpoint.py
imports: import json
  import math
  import os
  import shutil
  import torch
  from .None import Callback
label_desc: Use image node_id 2 for calling a global function with example usage: generate_checkpoint_name(run_id, kv_dict, epoch, is_best) and returns: unknown, unknown