code: def video_decoder_pipeline(source, device="cpu"):
      data = fn.external_source(
          source=source, dtype=types.UINT8, ndim=1
      )
      return fn.experimental.decoders.video(data, 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 1 for calling a global function with example usage: video_decoder_pipeline(source, device) and returns: fn