code: def dtype_to_array_format(dtype):
      if dtype == np.uint8:
          return array_format.UNSIGNED_INT8
      elif dtype == np.uint16:
          return array_format.UNSIGNED_INT16
      elif dtype == np.uint32:
          return array_format.UNSIGNED_INT32
      elif dtype == np.int8:
          return array_format.SIGNED_INT8
      elif dtype == np.int16:
          return array_format.SIGNED_INT16
      elif dtype == np.int32:
          return array_format.SIGNED_INT32
      elif dtype == np.float32:
          return array_format.FLOAT
      else:
          raise TypeError(
              "cannot convert dtype '%s' to array format" % dtype
          )
  
imports: import os
  import numpy
label_desc: Use image node_id 15 for calling a global function with example usage: dtype_to_array_format(dtype) and returns: array_format, array_format, array_format, array_format, array_format, array_format, array_format