code: def setup_test_numpy_reader_cpu():
      tmp_dir = tempfile.TemporaryDirectory()
      dir_name = tmp_dir.name
  
      rng = np.random.default_rng(12345)
  
      def create_numpy_file(filename, shape, typ, fortran_order):
          # generate random array
          arr = rng.random(shape) * 10.0
          arr = arr.astype(typ)
          if fortran_order:
              arr = np.asfortranarray(arr)
          np.save(filename, arr)
  
      num_samples = 20
      filenames = []
      for index in range(0, num_samples):
          filename = os.path.join(
              dir_name, "test_{:02d}.npy".format(index)
          )
          filenames.append(filename)
          create_numpy_file(filename, (5, 2, 8), np.float32, False)
  
      return tmp_dir
  
file_path: DALI/dali/test/python/test_dali_cpu_only_utils.py
imports: import os
  import json
  import numpy
  import tempfile
  import scipy
  import scipy.io.wavfile
  import nvidia.dali.fn
  import nvidia.dali.math
  from nvidia.dali.pipeline import pipeline_def
  from test_audio_decoder_utils import generate_waveforms
label_desc: Use image node_id 2 for calling a global function with example usage: setup_test_numpy_reader_cpu() and returns: tmp_dir