code: def ndarray_dtype_to_dtype(dtype):
      if dtype == np.int32:
          return DType.INT32
  
      if dtype == np.float32:
          return DType.FLOAT32
  
      if dtype == np.uint8:
          return DType.UINT8
  
      raise ValueError(f"{dtype} is not supported")
  
imports: import copy
  import os
  from collections import namedtuple
  from io import BytesIO
  import numpy
  import pyarrow
  from itertools import chain, islice
  from enum import Enum
  import json
label_desc: Use image node_id 1 for calling a global function with example usage: ndarray_dtype_to_dtype(dtype) and returns: DType, DType, DType