code: def test_show_ascii(repo):
      assert [
          line.rstrip()
          for line in _show_ascii(repo.index.graph).splitlines()
      ] == [
          "                        +----------------+                          +----------------+",  # noqa: E501
          "                        | stage: 'a.dvc' |                          | stage: 'b.dvc' |",  # noqa: E501
          "                       *+----------------+****                      +----------------+",  # noqa: E501
          "                  *****           *           *****                  ***           ***",  # noqa: E501
          "              ****                *                *****           **                 **",  # noqa: E501
          "           ***                     *                    ***      **                     **",  # noqa: E501
          "+------------+                     **                   +------------+              +------------+",  # noqa: E501
          "| stage: '1' |                       **                 | stage: '3' |              | stage: '2' |",  # noqa: E501
          "+------------+                         ***              +------------+              +------------+",  # noqa: E501
          "                                          **           ***",
          "                                            **       **",
          "                                              **   **",
          "                                          +------------+",
          "                                          | stage: '4' |",
          "                                          +------------+",
      ]
  
file_path: dvc/tests/unit/command/test_dag.py
imports: import networkx
  import pytest
  from dvc.cli import main, parse_args
  from dvc.commands.dag import CmdDAG, _build, _show_ascii, _show_dot, _show_mermaid
label_desc: Use image node_id 9 for calling a global function with example usage: test_show_ascii(repo) without return types