code: def test_colortransform(self):
      # test assertion for invalid value of level
      with self.assertRaises(AssertionError):
          transform = ColorTransform(level=-1)
  
      # test assertion for invalid prob
      with self.assertRaises(AssertionError):
          transform = ColorTransform(level=1, prob=-0.5)
  
      # test case when no translation is called (prob=0)
      transform = ColorTransform(prob=0.0, level=10)
      results_wo_color = transform(copy.deepcopy(self.results_mask))
      check_result_same(
          self.results_mask, results_wo_color, self.check_keys
      )
  
imports: import copy
  import unittest
  from mmdet.datasets.transforms import AutoContrast, Brightness, Color, ColorTransform, Contrast, Equalize, Invert, Posterize, Sharpness, Solarize, SolarizeAdd
  from .utils import check_result_same, construct_toy_data
label_desc: Use image node_id 2 for calling the TestColorTransform obj's underlying member method code with example usage: obj.test_colortransform() without return types