code: def _collect_outs(
      repo: "Repo",
      output_filter: Optional[FilterFn] = None,
      deps: bool = False,
  ) -> Outputs:
      index = repo.index
      index.check_graph()  # ensure graph is correct
      return list(
          filter(output_filter, index.deps if deps else index.outs)
      )
  
imports: from typing import TYPE_CHECKING, Callable, Iterable, List, Optional, Tuple
  from dvc.log import logger
label_desc: Use image node_id 1 for calling a global function with example usage: _collect_outs(repo, output_filter, deps) and returns: list