code: def testSummarizingVariable(self):
      with self.cached_session() as s:
          c = constant_op.constant(42.0)
          v = variables.Variable(c)
          ss = summary_lib.scalar("summary", v)
          init = variables.global_variables_initializer()
          s.run(init)
          summ_str = s.run(ss)
      summary = summary_pb2.Summary()
      summary.ParseFromString(summ_str)
      self.assertEqual(len(summary.value), 1)
      value = summary.value[0]
      self.assertEqual(value.tag, "summary")
      self.assertEqual(value.simple_value, 42.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 3 for calling the SummaryTest obj's underlying member method code with example usage: obj.testSummarizingVariable() without return types