code: def _return_object(x):
      handle = x.v_handle
      if not isinstance(handle, ObjectHandle):
          handle = ObjectHandle(handle)
      tindex = ctypes.c_uint()
      check_call(
          _LIB.MXNetObjectGetTypeIndex(handle, ctypes.byref(tindex))
      )
      cls = OBJECT_TYPE.get(tindex.value, _CLASS_OBJECT)
      if issubclass(cls, PyNativeObject):
          obj = _CLASS_OBJECT.__new__(_CLASS_OBJECT)
          obj.handle = handle
          return cls.__from_mxnet_object__(cls, obj)
      # Avoid calling __init__ of cls, instead directly call __new__
      # This allows child class to implement their own __init__
      obj = cls.__new__(cls)
      obj.handle = handle
      return obj
  
file_path: mxnet/python/mxnet/_ffi/_ctypes/object.py
imports: import ctypes
  from ...base import _LIB, check_call
  from .types import RETURN_SWITCH, TypeCode
label_desc: Use image node_id 3 for calling a global function with example usage: _return_object(x) and returns: obj, cls