code: def Flush(self):
      
      if self.locked and self.CheckLease() == 0:
        self._RaiseLockError("Flush")
  
      self._WriteAttributes()
      self._SyncAttributes()
  
      if self.parent:
        self.parent.Flush()
docs: Syncs this object with the data store, maintaining object validity.