code: def _get_global_func(name, allow_missing=False):
      handle = FunctionHandle()
      check_call(
          _LIB.MXNetFuncGetGlobal(c_str(name), ctypes.byref(handle))
      )
      if handle.value:
          return _make_packed_func(handle, False)
  
      if allow_missing:
          return None
  
      raise ValueError(f"Cannot find global function {name}")
  
imports: import ctypes
  from numbers import Number, Integral
  import numpy
  from ...base import get_last_ffi_error, _LIB, check_call, _MAX_VALUE_64_BIT_SIGNED_, _MAX_VALUE_64_BIT_UNSIGNED_
  from ..base import c_str
  from .types import MXNetValue, TypeCode
  from .types import RETURN_SWITCH
  from ..._ctypes.ndarray import NDArrayBase
  from .object import ObjectBase, PyNativeObject, _set_class_object
  from .None import object
label_desc: Use image node_id 2 for calling a global function with example usage: _get_global_func(name, allow_missing) and returns: _make_packed_func, None