code: def get_checkpoints(run_path: Path) -> Generator[Path, None, None]:
      checkpoints_path = run_path / "checkpoints"
      if not checkpoints_path.exists():
          return
  
      for chk_path in checkpoints_path.iterdir():
          yield chk_path
  
file_path: labml/client/labml/internal/manage/runs.py
imports: from pathlib import Path
  from typing import Optional, Generator
  from labml.logger import inspect
label_desc: Use image node_id 6 for calling a global function with example usage: get_checkpoints(run_path) without return types