code: def _collect_top_level_params(repo: "Repo") -> Iterator[str]:
      top_params = repo.index._params
      for dvcfile, params in top_params.items():
          wdir = repo.fs.relpath(repo.fs.parent(dvcfile), repo.root_dir)
          for file in params:
              path = repo.fs.join(wdir, as_posix(file))
              yield repo.fs.normpath(path)
  
file_path: dvc/dvc/repo/params/show.py
imports: import os
  from collections import defaultdict
  from itertools import chain
  from typing import TYPE_CHECKING, Any, Dict, Iterator, List, Optional, Tuple, Union
  from dvc.dependency.param import ParamsDependency, read_param_file
  from dvc.log import logger
  from dvc.repo.metrics.show import FileResult, Result
  from dvc.stage import PipelineStage
  from dvc.utils import as_posix, expand_paths
  from dvc.utils.collections import ensure_list
label_desc: Use image node_id 1 for calling a global function with example usage: _collect_top_level_params(repo) without return types