code: def test_show_dot(repo):
      # dot file rendering is not deterministic though graph
      # output doesn't depend upon order of lines. Use sorted values
      # https://github.com/iterative/dvc/pull/7725
      expected = [
          "\"stage: '1'\";",
          "\"stage: '2'\";",
          "\"stage: '3'\" -> \"stage: '4'\";",
          "\"stage: '3'\";",
          "\"stage: '4'\";",
          "\"stage: 'a.dvc'\" -> \"stage: '1'\";",
          "\"stage: 'a.dvc'\" -> \"stage: '3'\";",
          "\"stage: 'a.dvc'\" -> \"stage: '4'\";",
          "\"stage: 'a.dvc'\";",
          "\"stage: 'b.dvc'\" -> \"stage: '2'\";",
          "\"stage: 'b.dvc'\" -> \"stage: '3'\";",
          "\"stage: 'b.dvc'\";",
          "strict digraph  {",
          "}",
      ]
      actual = sorted(
          line.rstrip()
          for line in _show_dot(repo.index.graph).splitlines()
      )
      assert actual == expected
  
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 10 for calling a global function with example usage: test_show_dot(repo) without return types