code: def reference_pipeline(filename, device="cpu"):
      seq_length = video_length(filename)
      return fn.experimental.readers.video(
          filenames=[filename],
          sequence_length=seq_length,
          device=device,
      )
  
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 3 for calling a global function with example usage: reference_pipeline(filename, device) and returns: fn