code: def _ProcessScalar(self, tag, wall_time, step, scalar):
      
      sv = ScalarEvent(wall_time=wall_time, step=step, value=scalar)
      self.scalars.AddItem(tag, sv)
docs: Processes a simple value by adding it to accumulated state.