code: def registerXPathFunction(self, name, ns_uri, f):
          
          ret = libxml2mod.xmlRegisterXPathFunction(self._o, name, ns_uri, f)
          return ret
docs: Register a Python written function to the XPath interpreter