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