docstr: Tests that the lighting transform runs without any errors.
docstr_tok: ["Tests","that","the","lighting","transform","runs","without","any","errors","."]
code: def test_lighting_transform_no_errors(self):
      """
      Tests that the lighting transform runs without any errors.
      """
      dataset = self.get_test_image_dataset()
  
      config = [{"name": "ToTensor"}, {"name": "lighting"}]
      transform = build_field_transform_default_imagenet(config)
      sample = dataset[0]
      try:
          # test that lighting has been registered and runs without errors
          transform(sample)
      except Exception:
          self.fail("LightingTransform raised an exception")
      return
  
imports: import unittest
  from classy_vision.dataset.core.random_image_datasets import RandomImageBinaryClassDataset
  from classy_vision.dataset.transforms.util import build_field_transform_default_imagenet
label_desc: Use image node_id 2 for calling the LightingTransformTest obj's underlying member method code with example usage: obj.test_lighting_transform_no_errors() without return types