code: def _return_handle(x):
      """return handle"""
      handle = x.v_handle
      if not isinstance(handle, ctypes.c_void_p):
          handle = ctypes.c_void_p(handle)
      return handle
  
file_path: dgl/python/dgl/_ffi/_ctypes/types.py
imports: from __future__ import absolute_import
  import ctypes
  from ..base import _LIB, check_call, py_str
  from ..runtime_ctypes import DGLByteArray, DGLContext, DGLDataType, TypeCode
label_desc: Use image node_id 1 for calling a global function with example usage: _return_handle(x) and returns: handle