code: def test_show_dot_properly_escapes():
      graph = nx.DiGraph(
          [
              ("evaluate", "train🚄"),  # emoji
              ("evaluate", "featurize"),
              ("featurize", "prepare:1"),  # colon
              ("prepare:1", "data/raw/1.dvc"),  # posix path
              ("prepare:1", "data\\raw\\2.dvc"),  # windows path
              ("prepare", "4"),  # just a number
          ]
      )
  
      expected = {
          "strict digraph  {",
          '"data\\raw\\2.dvc";',
          '"prepare";',
          '"4";',
          '"data/raw/1.dvc";',
          '"train🚄";',
          '"evaluate";',
          '"prepare:1";',
          '"featurize";',
          '"data\\raw\\2.dvc" -> "prepare:1";',
          '"4" -> "prepare";',
          '"data/raw/1.dvc" -> "prepare:1";',
          '"train🚄" -> "evaluate";',
          '"prepare:1" -> "featurize";',
          '"featurize" -> "evaluate";',
          "}",
      }
      actual = {line.rstrip() for line in _show_dot(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 11 for calling a global function with example usage: test_show_dot_properly_escapes() without return types