code: def _show_ascii(graph: "DiGraph"):
      from dvc.dagascii import draw
      from dvc.repo.graph import get_pipelines
  
      pipelines = get_pipelines(graph)
  
      ret = []
      for pipeline in pipelines:
          ret.append(draw(pipeline.nodes, pipeline.edges))
  
      return "\n".join(ret)
  
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 1 for calling a global function with example usage: _show_ascii(graph) and returns: str