code: def save(self, safe=None):
          
          self._session.insert(self, safe=safe)
          self._session.flush()
docs: Saves the document itself in the database.
  
          The optional ``safe`` argument is a boolean that specifies if the
          remove method should wait for the operation to complete.