code: def get_experiments(
      experiments_path: Path,
  ) -> Generator[Path, None, None]:
      try:
          if not experiments_path.exists():
              return
      except OSError:
          return
  
      for exp_path in experiments_path.iterdir():
          if not _is_valid_path(exp_path):
              continue
  
          yield exp_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 3 for calling a global function with example usage: get_experiments(experiments_path) without return types