code: def test_video():
      def brightness(sample_desc):
          return np.float32(2 * sample_desc.rng.random())
  
      def brightness_shift(sample_desc):
          return np.float32(sample_desc.rng.random())
  
      def contrast(sample_desc):
          return np.float32(2 * sample_desc.rng.random())
  
      def contrast_center(sample_desc):
          return np.float32(sample_desc.rng.random())
  
      video_test_cases = [
          (
              fn.brightness,
              {"dtype": types.INT32},
              [ArgCb("brightness", brightness, True)],
          ),
          (
              fn.brightness,
              {"dtype": types.UINT8},
              [
                  ArgCb("brightness_shift", brightness_shift, True),
                  ArgCb("brightness", brightness, False),
              ],
          ),
          (
              fn.contrast,
              {"dtype": types.FLOAT},
              [ArgCb("contrast", contrast, True)],
          ),
          (
              fn.contrast,
              {"dtype": types.FLOAT},
              [
                  ArgCb("contrast", contrast, True),
                  ArgCb("contrast_center", contrast_center, False),
              ],
          ),
          (
              fn.contrast,
              {"dtype": types.UINT8},
              [ArgCb("contrast_center", contrast_center, True)],
          ),
          (
              fn.brightness_contrast,
              {"dtype": types.UINT8},
              [
                  ArgCb("contrast", contrast, False),
                  ArgCb("contrast_center", contrast_center, True),
                  ArgCb("brightness", brightness, True),
              ],
          ),
          (
              fn.brightness_contrast,
              {},
              [
                  ArgCb("brightness", brightness, True),
                  ArgCb("brightness_shift", brightness_shift, True),
                  ArgCb("contrast", contrast, True),
                  ArgCb("contrast_center", contrast_center, True),
              ],
          ),
      ]
  
      yield from video_suite_helper(
          video_test_cases, test_channel_first=False
      )
  
imports: import nvidia.dali.fn
  from nvidia.dali import pipeline_def
  import nvidia.dali.types
  import numpy
  from test_utils import compare_pipelines, python_function
  from test_utils import RandomDataIterator
  from sequences_test_utils import ArgCb, video_suite_helper
  import random
label_desc: Use image node_id 17 for calling a global function with example usage: test_video() and returns: np, np, np, np