code: def get_sequence(shape, offset=0):
      assert len(shape) > 1
      elem_shape = shape.copy()
      seq_length = elem_shape[0]
      elem_shape[0] = 1
      elems = []
      for i in range(seq_length):
          elems.append(np.full(elem_shape, offset + i))
      return np.concatenate(elems, axis=0)
  
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 1 for calling a global function with example usage: get_sequence(shape, offset) and returns: np