code: def _reg_extension(cls, fcreate):
      global _TVM_COMPATS
      _TVM_COMPATS += (cls,)
      if fcreate:
          fret = lambda x: fcreate(_return_handle(x))
          RETURN_SWITCH[cls._tvm_tcode] = fret
          C_TO_PY_ARG_SWITCH[cls._tvm_tcode] = _wrap_arg_func(
              fret, cls._tvm_tcode
          )
  
file_path: tvm/python/tvm/_ffi/_ctypes/ndarray.py
imports: import ctypes
  from ..base import _LIB, check_call, c_str
  from ..runtime_ctypes import TVMArrayHandle
  from .types import RETURN_SWITCH, C_TO_PY_ARG_SWITCH, _wrap_arg_func, _return_handle
label_desc: Use image node_id 4 for calling a global function with example usage: _reg_extension(cls, fcreate) without return types