code: def get_checkpoint(epoch):
      """Retrieves the path to a checkpoint file."""
      name = "{}{:04d}.pyth".format(_NAME_PREFIX, epoch)
      return os.path.join(get_checkpoint_dir(), name)
  
file_path: pycls/pycls/core/checkpoint.py
imports: import os
  import pycls.core.distributed
  import torch
  from pycls.core.config import cfg
  from pycls.core.io import pathmgr
  from pycls.core.net import unwrap_model
label_desc: Use image node_id 2 for calling a global function with example usage: get_checkpoint(epoch) and returns: os