code: def dali_type_to_np(dtype):
      if dtype == types.FLOAT:
          return np.single
      elif dtype == types.INT16:
          return np.short
      elif dtype == types.INT32:
          return np.intc
      elif dtype == types.UINT8:
          return np.ubyte
      else:
          assert False
  
imports: import nvidia.dali.fn
  from nvidia.dali import pipeline_def
  import nvidia.dali.types
  import numpy
  from test_utils import compare_pipelines, python_function
  from test_utils import RandomDataIterator
  from sequences_test_utils import ArgCb, video_suite_helper
  import random
label_desc: Use image node_id 4 for calling a global function with example usage: dali_type_to_np(dtype) and returns: np, np, np, np