code: def test_simple_toc():
      simple_lines = open(simple_toc, "rb").read()
      toc = b"".join([str(t).encode() for t in doc.get_toc(True)])
      assert toc == simple_lines
  
file_path: pymudf/tests/test_toc.py
imports: import os
  import sys
  import fitz
label_desc: Use image node_id 1 for calling a global function with example usage: test_simple_toc() without return types