code: def gen_data(batch_size, type):
      return [random_sample().astype(type) for _ in range(batch_size)]
  
file_path: DALI/dali/test/python/operator_1/test_batch_permute.py
imports: import nvidia.dali
  import nvidia.dali.fn
  from nvidia.dali.pipeline import Pipeline
  import numpy
  from test_utils import check_batch
  from nose_utils import raises
label_desc: Use image node_id 4 for calling a global function with example usage: gen_data(batch_size, type) and returns: unknown