code: def test_pageboxes():
      """Tests concerning ArtBox, TrimBox, BleedBox."""
      doc = fitz.open()
      page = doc.new_page()
      assert (
          page.cropbox == page.artbox == page.bleedbox == page.trimbox
      )
      rect_methods = (
          page.set_cropbox,
          page.set_artbox,
          page.set_bleedbox,
          page.set_trimbox,
      )
      keys = ("CropBox", "ArtBox", "BleedBox", "TrimBox")
      rect = fitz.Rect(100, 200, 400, 700)
      for f in rect_methods:
          f(rect)
      for key in keys:
          assert doc.xref_get_key(page.xref, key) == (
              "array",
              "[100 142 400 642]",
          )
      assert (
          page.cropbox == page.artbox == page.bleedbox == page.trimbox
      )
  
file_path: pymudf/tests/test_geometry.py
imports: import fitz
label_desc: Use image node_id 8 for calling a global function with example usage: test_pageboxes() without return types