code: def test_transform(self):
      dummy_result = dict(
          img_shape=(100, 200), img=np.zeros((100, 200, 3))
      )
      resize = dict(type="Resize", scale=(40, 50), keep_ratio=False)
  
      trans = ConditionApply(
          "results['img_shape'][0] > 80", true_transforms=resize
      )
      results = trans(dummy_result)
      self.assertEqual(results["img_shape"], (50, 40))
      dummy_result = dict(
          img_shape=(100, 200), img=np.zeros((100, 200, 3))
      )
      trans = ConditionApply(
          "results['img_shape'][0] < 80", false_transforms=resize
      )
      results = trans(dummy_result)
      self.assertEqual(results["img_shape"], (50, 40))
      dummy_result = dict(
          img_shape=(100, 200), img=np.zeros((100, 200, 3))
      )
      trans = ConditionApply("results['img_shape'][0] < 80")
      results = trans(dummy_result)
      self.assertEqual(results["img_shape"], (100, 200))
  
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 1 for calling the TestConditionApply obj's underlying member method code with example usage: obj.test_transform() without return types