code: def get_paths() -> List[PurePath]:
      paths: List[PurePath] = []
      if not args.files:
          exclude_dirs = {"vendor", "__pycache__"}
          root_dir = Path(__file__).resolve().parent.parent / "wandb"
          for base, subdirs, files in os.walk(root_dir):
              # Don't walk into excluded subdirectories
              subdirs[:] = list(set(subdirs) - exclude_dirs)
              for fname in files:
                  if fname.endswith(GENERATE_SUFFIX):
                      paths.append(PurePath(base, fname))
      for f in args.files:
          paths.append(Path(f))
      return paths
  
file_path: wandb/tools/generate-tool.py
imports: import argparse
  import contextlib
  import filecmp
  import os
  import subprocess
  import tempfile
  from pathlib import Path, PurePath
  from typing import Iterator, List
label_desc: Use image node_id 1 for calling a global function with example usage: get_paths() and returns: paths