code: def test_cut_modes(self):
      images = os.path.join(
          this_dir, "data", "avicanon_pagexml", "*.nrm.png"
      )
      self.run_dataset_viewer(
          [
              "--gen",
              "PageXML",
              "--gen.images",
              images,
              "--gen.cut_mode",
              "BOX",
          ]
      )
      self.run_dataset_viewer(
          [
              "--gen",
              "PageXML",
              "--gen.images",
              images,
              "--gen.cut_mode",
              "MBR",
          ]
      )
  
imports: import os
  import unittest
label_desc: Use image node_id 2 for calling the TestPageXML obj's underlying member method code with example usage: obj.test_cut_modes() without return types