code: def parseURI(str):
      
      ret = libxml2mod.xmlParseURI(str)
      if ret is None:raise uriError('xmlParseURI() failed')
      return URI(_obj=ret)
docs: Parse an URI based on RFC 3986  URI-reference = [
         absoluteURI | relativeURI ] [ "#" fragment ]