docstr: Verify processing of tf.summary.scalar.
code: def testTFSummaryScalar(self):
      """Verify processing of tf.summary.scalar."""
      event_sink = _EventGenerator(self, zero_out_timestamps=True)
      with test_util.FileWriterCache.get(self.get_temp_dir()) as writer:
          writer.event_writer = event_sink
          with self.test_session() as sess:
              ipt = tf.compat.v1.placeholder(tf.float32)
              tf.compat.v1.summary.scalar("scalar1", ipt)
              tf.compat.v1.summary.scalar("scalar2", ipt * ipt)
              merged = tf.compat.v1.summary.merge_all()
              writer.add_graph(sess.graph)
              for i in range(10):
                  summ = sess.run(merged, feed_dict={ipt: i})
                  writer.add_summary(summ, global_step=i)
  
      accumulator = ea.EventAccumulator(event_sink)
      accumulator.Reload()
  
      seq1 = [
          ea.ScalarEvent(wall_time=0, step=i, value=i)
          for i in range(10)
      ]
      seq2 = [
          ea.ScalarEvent(wall_time=0, step=i, value=i * i)
          for i in range(10)
      ]
  
      self.assertTagsEqual(
          accumulator.Tags(),
          {
              ea.SCALARS: ["scalar1", "scalar2"],
              ea.GRAPH: True,
              ea.META_GRAPH: False,
          },
      )
  
      self.assertEqual(accumulator.Scalars("scalar1"), seq1)
      self.assertEqual(accumulator.Scalars("scalar2"), seq2)
      first_value = accumulator.Scalars("scalar1")[0].value
      self.assertTrue(isinstance(first_value, float))
  
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 24 for calling the MockingEventAccumulatorTest obj's underlying member method code with example usage: obj.testTFSummaryScalar() without return types