code: def reorder_sample(sample, seq_len, order):
      """
      Reorder sequence in one sample according to order parameter
      """
      split = np.split(sample, seq_len)
      reordered = []
      for i in range(len(order)):
          reordered.append(split[order[i]])
      return np.concatenate(reordered, 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 3 for calling a global function with example usage: reorder_sample(sample, seq_len, order) and returns: np