code: def test_full_range_video_in_memory(device):
      @pipeline_def
      def test_pipeline():
          videos = fn.experimental.readers.video(
              device=device,
              filenames=[
                  get_dali_extra_path()
                  + "/db/video/full_dynamic_range/video.mp4"
              ],
              sequence_length=1,
          )
          return videos
  
      video_pipeline = test_pipeline(
          batch_size=1, num_threads=1, device_id=0
      )
  
      video_pipeline.build()
      o = video_pipeline.run()
      out = o[0]
      if device == "gpu":
          out = out.as_cpu()
      out = out.as_array()
      ref = cv2.imread(
          get_dali_extra_path()
          + "/db/video/full_dynamic_range/0001.png"
      )
      ref = cv2.cvtColor(ref, cv2.COLOR_BGR2RGB)
      left = ref
      right = out
      absdiff = np.abs(left.astype(int) - right.astype(int))
      assert np.mean(absdiff) < 2
  
imports: import nvidia.dali.fn
  from nvidia.dali import pipeline_def
  import numpy
  import cv2
  import nvidia.dali.types
  import glob
  from itertools import cycle
  from test_utils import get_dali_extra_path, is_mulit_gpu
  from nvidia.dali.backend import TensorListGPU
  from nose2.tools import params
  from nose import SkipTest
  from nose.plugins.attrib import attr
label_desc: Use image node_id 9 for calling a global function with example usage: test_full_range_video_in_memory(device) and returns: videos