code: def test_write_network_text_wheel_graph():
      graph = nx.wheel_graph(7, create_using=nx.Graph)
      lines = []
      write = lines.append
      nx.write_network_text(graph, path=write, end="")
      text = "\n".join(lines)
      print(text)
      target = dedent(
          """
          ╙── 1
              ├── 0
              │   ├── 2 ─ 1
              │   │   └── 3 ─ 0
              │   │       └── 4 ─ 0
              │   │           └── 5 ─ 0
              │   │               └── 6 ─ 0, 1
              │   └──  ...
              └──  ...
          """
      ).strip()
      assert target == text
  
imports: import random
  from itertools import product
  from textwrap import dedent
  import pytest
  import networkx
label_desc: Use image node_id 20 for calling a global function with example usage: test_write_network_text_wheel_graph() without return types