code: def get_sequences(batch_size, shape):
      batch = []
      for i in range(batch_size):
          batch.append(get_sequence(shape, i * shape[0]))
      return batch
  
file_path: DALI/dali/test/python/operator_2/test_sequence_rearrange.py
imports: from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.fn
  import numpy
  from nose_utils import raises
label_desc: Use image node_id 2 for calling a global function with example usage: get_sequences(batch_size, shape) and returns: batch