def WriteState(self):
    if "w" in self.mode:
      # For normal flows it's a bug to write an empty state, here it's ok.
      self.Set(self.Schema.FLOW_STATE(self.state))
dataset/ETHPy150Open google/grr/grr/lib/flow.py/WellKnownFlow.WriteState/original