class_docstr: NumpyFormat:
class_docstr_tok: ["NumpyFormat",":"]
code: def to_numpy_type(dtype):
      if dtype == 1:
          return np.uint8
      if dtype == 2:
          return np.uint16
      if dtype == 3:
          return np.uint32
      if dtype == 4:
          return np.uint64
      if dtype == 5:
          return np.int8
      if dtype == 6:
          return np.int16
      if dtype == 7:
          return np.int32
      if dtype == 8:
          return np.int64
      if dtype == 9:
          return np.float16
      if dtype == 10:
          return np.float32
      if dtype == 11:
          return np.float64
      raise ValueError("Unsupport numpy type code %s" % dtype)
  
imports: import json
  import numpy
  from towhee.runtime.data_queue import Empty
label_desc: Use image node_id 5 for calling the NumpyFormat obj's underlying member method code with example usage: obj.to_numpy_type(dtype) and returns: np, np, np, np, np, np, np, np, np, np, np