code: def createEntityParserCtxt(URL, ID, base):
      
      ret = libxml2mod.xmlCreateEntityParserCtxt(URL, ID, base)
      if ret is None:raise parserError('xmlCreateEntityParserCtxt() failed')
      return parserCtxt(_obj=ret)
docs: Create a parser context for an external entity Automatic
        support for ZLIB/Compress compressed document is provided
         by default if found at compile-time.