code: def get_ckpt_epoch(epoch: int) -> int:
      if epoch < 0:
          epochs = get_ckpt_epochs()
          epoch = epochs[epoch] if len(epochs) > 0 else 0
      return epoch
  
file_path: GraphGym/graphgym/checkpoint.py
imports: import glob
  import os
  import os.path
  from typing import Any, Dict, List, Optional, Union
  import torch
  from graphgym.config import cfg
label_desc: Use image node_id 8 for calling a global function with example usage: get_ckpt_epoch(epoch) and returns: epoch