code: def _setMetadata(self, text):
          
          if self.isClosed or self.isEncrypted:
              raise ValueError("operation illegal for closed / encrypted doc")
  
          return _fitz.Document__setMetadata(self, text)
docs: _setMetadata(self, text) -> PyObject *