code: def assert_result_equal(
      self,
      results: Dict,
      poly_targets: List[np.ndarray],
      bbox_targets: np.ndarray,
      bbox_label_targets: np.ndarray,
      ignore_targets: np.ndarray,
      text_targets: Optional[List[str]] = None,
  ) -> None:
      self.assertPolyEqual(poly_targets, results["gt_polygons"])
      self.assertTrue(
          np.array_equal(bbox_targets, results["gt_bboxes"])
      )
      self.assertTrue(
          np.array_equal(
              bbox_label_targets, results["gt_bboxes_labels"]
          )
      )
      self.assertTrue(
          np.array_equal(ignore_targets, results["gt_ignored"])
      )
      self.assertEqual(text_targets, results["gt_texts"])
      self.assertEqual(
          results["img_shape"],
          (results["img"].shape[0], results["img"].shape[1]),
      )
  
imports: import copy
  import unittest
  from typing import Dict, List, Optional
  import numpy
  from shapely.geometry import Polygon
  from mmocr.datasets.transforms import ConditionApply, ImgAugWrapper, TorchVisionWrapper
label_desc: Use image node_id 4 for calling the TestImgAug obj's underlying member method code with example usage: obj.assert_result_equal(results, poly_targets, bbox_targets, bbox_label_targets, ignore_targets, text_targets) without return types