code: def clean_ckpt():
      r"""Removes all but the last model checkpoint."""
      for epoch in get_ckpt_epochs()[:-1]:
          os.remove(get_ckpt_path(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 4 for calling a global function with example usage: clean_ckpt() without return types