code: def test_write_network_text_circular_ladder_graph():
      graph = nx.circular_ladder_graph(4, create_using=nx.Graph)
      lines = []
      write = lines.append
      nx.write_network_text(graph, path=write, end="")
      text = "\n".join(lines)
      print(text)
      target = dedent(
          """
          ╙── 0
              ├── 1
              │   ├── 2
              │   │   ├── 3 ─ 0
              │   │   │   └── 7
              │   │   │       ├── 6 ─ 2
              │   │   │       │   └── 5 ─ 1
              │   │   │       │       └── 4 ─ 0, 7
              │   │   │       └──  ...
              │   │   └──  ...
              │   └──  ...
              └──  ...
          """
      ).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 21 for calling a global function with example usage: test_write_network_text_circular_ladder_graph() without return types