code: def video_loader(batch_size, epochs):
      idx = 0
      while idx < epochs * len(files):
          batch = []
          for _ in range(batch_size):
              batch.append(files[idx % len(files)])
              idx = idx + 1
          yield batch
  
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 4 for calling a global function with example usage: video_loader(batch_size, epochs) without return types