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)
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.
        
python/dgl/_ffi/function.py