code: def test_init(self):
      # iter_num is int
      transform = TextDetRandomCropFlip(iter_num=1)
      self.assertEqual(transform.iter_num, 1)
      # iter_num is float
      with self.assertRaisesRegex(
          TypeError, "`iter_num` should be an integer"
      ):
          transform = TextDetRandomCropFlip(iter_num=1.5)
  
imports: import copy
  import unittest
  import unittest.mock
  import numpy
  from mmcv.transforms import Pad, RandomResize
  from mmocr.datasets.transforms import BoundedScaleAspectJitter, RandomCrop, RandomFlip, Resize, ShortScaleAspectJitter, SourceImagePad, TextDetRandomCrop, TextDetRandomCropFlip
  from mmocr.utils import bbox2poly, poly2shapely
label_desc: Use image node_id 2 for calling the TestTextDetRandomCropFlip obj's underlying member method code with example usage: obj.test_init() without return types