code: def get_type_code(type_name):
      """Get the type code of a custom datatype from its type name
  
      Note that this only works for custom datatypes registered with
      tvm.target.datatype.register(). It does not work for TVM-native types.
  
      Example:
  
      .. code-block:: python
  
          tvm.target.datatype.register('posites2', 130)
          assert tvm.target.datatype.get_type_code('posites2') == 130
  
      Parameters
      ----------
      type_name : str
          The type name
  
      Returns
      -------
      type_code : int
          The type code of the custom datatype.
      """
      return tvm.runtime._ffi_api._datatype_get_type_code(type_name)
  
file_path: tvm/python/tvm/target/datatype.py
imports: import tvm
  from tvm.runtime import convert, DataType
  from tvm.tir.expr import Call, Cast, FloatImm, BinaryOpExpr
  from tvm.tir.op import call_pure_extern
  from tvm._ffi import register_func
  from tvm.tir import call_intrin
label_desc: Use image node_id 3 for calling a global function with example usage: get_type_code(type_name) and returns: tvm