code: def create_numpy_file(filename, shape, typ, fortran_order):
      # generate random array
      arr = rng.random_sample(shape) * 10.0
      arr = arr.astype(typ)
      if fortran_order:
          arr = np.asfortranarray(arr)
      np.save(filename, arr)
  
imports: from nvidia.dali import Pipeline, pipeline_def
  import nvidia.dali.fn
  import nvidia.dali.types
  import nvidia.dali.backend
  import numpy
  from numpy.testing import assert_array_equal
  import os
  import platform
  import random
  import tempfile
  from nose_utils import assert_raises
  from nose import SkipTest
  from nose2.tools import params, cartesian_params
  from test_utils import compare_pipelines, to_array
label_desc: Use image node_id 2 for calling a global function with example usage: create_numpy_file(filename, shape, typ, fortran_order) without return types