code: def generate_statsfile_name(run_id, save_dir):
      save_dir1 = os.path.expanduser(save_dir)
      return os.path.join(save_dir1, str(run_id) + "_stats.json")
  
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 1 for calling a global function with example usage: generate_statsfile_name(run_id, save_dir) and returns: os