code: def test_video_decoder(device):
      batch_size = 3
      epochs = 3
      decoder_iter = video_decoder_iter(batch_size, epochs, device)
      ref_dec_iter = ref_iter(
          epochs, device="cpu" if device == "cpu" else "gpu"
      )
      for seq, ref_seq in zip(decoder_iter, ref_dec_iter):
          assert seq.shape == ref_seq.shape
          assert np.array_equal(seq, ref_seq)
  
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 7 for calling a global function with example usage: test_video_decoder(device) without return types