code: def GetSequences(channel_first, length, batch_size):
      """gets overlapping sequences, starting at iteration number"""
      source = frames_fchw if channel_first else frames_fhwc
      N = source.shape[0]
  
      def get_seq(id):
          ret = []
          for k in range(length):
              i = (id + k) % N
              ret.append(source[i])
          return np.array(ret)
  
      def get_batch(iter):
          return [
              get_seq(iter * batch_size + i) for i in range(batch_size)
          ]
  
      return get_batch
  
file_path: DALI/dali/test/python/operator_2/test_resize_seq.py
imports: import nvidia.dali
  import nvidia.dali.fn
  import nvidia.dali.types
  import numpy
  import os.path
  from test_utils import check_batch
  import PIL.Image
label_desc: Use image node_id 2 for calling a global function with example usage: GetSequences(channel_first, length, batch_size) and returns: get_batch, np, unknown