code: def _updateStream(self, xref=0, stream=None, new=0):
          
          if self.isClosed or self.isEncrypted:
              raise ValueError("operation illegal for closed / encrypted doc")
  
          return _fitz.Document__updateStream(self, xref, stream, new)
docs: _updateStream(self, xref=0, stream=None, new=0) -> PyObject *