class_docstr: Base class for module
docstr: Get function from the module.
  
  Parameters
  ----------
  name : str
      The name of the function
  
  query_imports : bool
      Whether also query modules imported by this module.
  
  Returns
  -------
  f : Function
      The result function.
docstr_tok: ["Get","function","from","the","module",".","Parameters","--","--","--","--","--","name",":","str","The","name","of","the","function","query_imports",":","bool","Whether","also","query","modules","imported","by","this","module",".","Returns","--","--","--","-","f",":","Function","The","result","function","."]
code: def get_function(self, name, query_imports=False):
      """Get function from the module.
  
      Parameters
      ----------
      name : str
          The name of the function
  
      query_imports : bool
          Whether also query modules imported by this module.
  
      Returns
      -------
      f : Function
          The result function.
      """
      ret_handle = FunctionHandle()
      check_call(
          _LIB.DGLModGetFunction(
              self.handle,
              c_str(name),
              ctypes.c_int(query_imports),
              ctypes.byref(ret_handle),
          )
      )
      if not ret_handle.value:
          raise AttributeError("Module has no function '%s'" % name)
      return Function(ret_handle, False)
  
imports: from __future__ import absolute_import
  import ctypes
  import sys
  from .base import _FFI_MODE, _LIB, c_str, check_call, py_str, string_types
label_desc: Use image node_id 4 for calling the ModuleBase obj's underlying member method code with example usage: obj.get_function(name, query_imports) and returns: Function