code: def data_type_to_np_dt(data_type, default_np_dt):
      if data_type is None:
          return default_np_dt
      elif (
          data_type == mace_pb2.DT_HALF
          or data_type == mace_pb2.DT_FLOAT16
      ):
          return np.float16
      elif data_type == mace_pb2.DT_INT32:
          return np.int
      elif data_type == mace_pb2.DT_UINT8:
          return np.uint8
      elif data_type == mace_pb2.DT_BFLOAT16:
          return np.uint16
      elif data_type == mace_pb2.DT_INT8:
          return np.int8
      elif data_type == mace_pb2.DT_INT16:
          return np.int16
      else:
          return np.float32
  
imports: import array
  import numpy
  import struct
  from py_proto import mace_pb2
label_desc: Use image node_id 3 for calling a global function with example usage: data_type_to_np_dt(data_type, default_np_dt) and returns: default_np_dt, np, np, np, np, np, np, np