code: def _build(repo, target=None, full=False, outs=False):
      targets = _collect_targets(repo, target, outs)
      graph = _transform(repo.index, outs)
      return _filter(graph, targets, full)
  
file_path: dvc/dvc/commands/dag.py
imports: from typing import TYPE_CHECKING
  from dvc.cli import formatter
  from dvc.cli.command import CmdBase
  from dvc.cli.utils import append_doc_link
  from dvc.ui import ui
label_desc: Use image node_id 8 for calling a global function with example usage: _build(repo, target, full, outs) and returns: _filter