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