code: def _register_object(index, cls):
      """register object class"""
      if issubclass(cls, NDArrayBase):
          _register_ndarray(index, cls)
          return
      OBJECT_TYPE[index] = cls
      OBJECT_INDEX[cls] = index
  
file_path: tvm/python/tvm/_ffi/_ctypes/object.py
imports: import ctypes
  from ..base import _LIB, check_call
  from .types import ArgTypeCode, RETURN_SWITCH, C_TO_PY_ARG_SWITCH, _wrap_arg_func
  from .ndarray import _register_ndarray, NDArrayBase
label_desc: Use image node_id 2 for calling a global function with example usage: _register_object(index, cls) without return types