code: def _wrap_arg_func(return_f, type_code):
      tcode = ctypes.c_int(type_code)
  
      def _wrap_func(x):
          check_call(_LIB.DGLCbArgToReturn(ctypes.byref(x), tcode))
          return return_f(x)
  
      return _wrap_func
  
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 3 for calling a global function with example usage: _wrap_arg_func(return_f, type_code) and returns: _wrap_func, return_f