code: def test_load_polygon(self):
      transform = LoadOCRAnnotations(
          with_bbox=False, with_label=False, with_polygon=True
      )
      results = transform(copy.deepcopy(self.results))
      self.assertIn("gt_polygons", results)
      self.assertIsInstance(results["gt_polygons"], list)
      self.assertEqual(len(results["gt_polygons"]), 4)
      for gt_polygon in results["gt_polygons"]:
          self.assertIsInstance(gt_polygon, np.ndarray)
          self.assertEqual(gt_polygon.dtype, np.float32)
  
      self.assertIn("gt_ignored", results)
      self.assertEqual(results["gt_ignored"].dtype, np.bool_)
      self.assertTrue(
          (
              results["gt_ignored"],
              np.array([False, False, True, True], dtype=np.bool_),
          )
      )
  
imports: import copy
  import os.path
  from unittest import TestCase
  import mmcv
  import numpy
  from mmocr.datasets.transforms import InferencerLoader, LoadImageFromFile, LoadKIEAnnotations, LoadOCRAnnotations
label_desc: Use image node_id 2 for calling the TestLoadOCRAnnotations obj's underlying member method code with example usage: obj.test_load_polygon() without return types