code: def testScalarSummary(self):
      with self.cached_session() as s:
          i = constant_op.constant(3)
          with ops.name_scope("outer"):
              im = summary_lib.scalar("inner", i)
          summary_str = s.run(im)
      summary = summary_pb2.Summary()
      summary.ParseFromString(summary_str)
      values = summary.value
      self.assertEqual(len(values), 1)
      self.assertEqual(values[0].tag, "outer/inner")
      self.assertEqual(values[0].simple_value, 3.0)
  
imports: from tensorflow.core.framework import summary_pb2
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import meta_graph
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.summary import summary
label_desc: Use image node_id 1 for calling the SummaryTest obj's underlying member method code with example usage: obj.testScalarSummary() without return types