code: def test_randaugment(self):
      # test RandAugment equipped with Rotate
      aug_space = [
          [dict(type="Rotate", prob=1.0, level=10, reversal_prob=0.0)]
      ]
      transform_rand = RandAugment(aug_space=aug_space, aug_num=1)
      results_rand = transform_rand(copy.deepcopy(self.results_mask))
      transform_rotate = Rotate(prob=1.0, level=10, reversal_prob=0.0)
      results_rotated = transform_rotate(
          copy.deepcopy(self.results_mask)
      )
      check_result_same(results_rotated, results_rand, self.check_keys)
  
      # test RandAugment equipped with default augmentation space
      transform_rand = RandAugment()
      transform_rand(copy.deepcopy(self.results_mask))
  
file_path: mmdetection/tests/test_datasets/test_transforms/test_augment_wrappers.py
imports: import copy
  import unittest
  from mmdet.datasets.transforms import AutoAugment, AutoContrast, Brightness, Color, Contrast, Equalize, Invert, Posterize, RandAugment, Rotate, Sharpness, ShearX, ShearY, Solarize, SolarizeAdd, TranslateX, TranslateY
  from mmdet.utils import register_all_modules
  from .utils import check_result_same, construct_toy_data
label_desc: Use image node_id 2 for calling the TestRandAugment obj's underlying member method code with example usage: obj.test_randaugment() without return types