docstr: Tests whether EventAccumulator contains scalars after adding
  them.
code: def testScalars(self):
      """Tests whether EventAccumulator contains scalars after adding
      them."""
      gen = _EventGenerator(self)
      acc = ea.EventAccumulator(gen)
      s1 = ea.ScalarEvent(wall_time=1, step=10, value=32)
      s2 = ea.ScalarEvent(wall_time=2, step=12, value=64)
      gen.AddScalar("s1", wall_time=1, step=10, value=32)
      gen.AddScalar("s2", wall_time=2, step=12, value=64)
      acc.Reload()
      self.assertEqual(acc.Scalars("s1"), [s1])
      self.assertEqual(acc.Scalars("s2"), [s2])
  
imports: import os
  import numpy
  import tensorflow
  from tensorboard.backend.event_processing import event_accumulator
  from tensorboard.compat.proto import config_pb2
  from tensorboard.compat.proto import event_pb2
  from tensorboard.compat.proto import graph_pb2
  from tensorboard.compat.proto import meta_graph_pb2
  from tensorboard.compat.proto import summary_pb2
  from tensorboard.plugins.distribution import compressor
  from tensorboard.util import tensor_util
  from tensorboard.util import test_util
  from tensorboard.util import tb_logging
label_desc: Use image node_id 6 for calling the MockingEventAccumulatorTest obj's underlying member method code with example usage: obj.testScalars() without return types