code: def create(self):
          
  
          # Ensure that an existing document will not be "updated"
          doc = dict(self)
          if doc.get('_rev') is not None:
              doc.__delitem__('_rev')
  
          headers = {'Content-Type': 'application/json'}
          resp = self.r_session.post(
              self._database.database_url,
              headers=headers,
              data=json.dumps(doc, cls=self.encoder)
          )
          resp.raise_for_status()
          data = response_to_json_dict(resp)
          super(Document, self).__setitem__('_id', data['id'])
          super(Document, self).__setitem__('_rev', data['rev'])
docs: Creates the current document in the remote database and if successful,
          updates the locally cached Document object with the ``_id``
          and ``_rev`` returned as part of the successful response.