docs: def save(self):
          """Saves the instance to the datastore."""
          if not self.is_valid():
              return self._errors
          _new = self.is_new()
          if _new:
              self._initialize_id()
          with Mutex(self):
              self._write(_new)
          return True