code: def params_from_target(
      repo: "Repo", targets: List[str]
  ) -> Iterator["ParamsDependency"]:
      stages = chain.from_iterable(
          repo.stage.collect(target) for target in targets
      )
      for stage in stages:
          yield from stage.params
  
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 2 for calling a global function with example usage: params_from_target(repo, targets) without return types