code: def bri_pipe(data_iterator, dtype, dev="cpu"):
      brightness, brightness_shift = brightness_params()
      inp = fn.external_source(source=data_iterator)
      if dev == "gpu":
          inp = inp.gpu()
      return fn.brightness(
          inp,
          brightness=brightness,
          brightness_shift=brightness_shift,
          dtype=dtype,
      )
  
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 9 for calling a global function with example usage: bri_pipe(data_iterator, dtype, dev) and returns: fn