code: def testScalarSummary(self):
      with self.cached_session() as sess:
          const = constant_op.constant(10.0)
          summ = summary_lib.tensor_summary("foo", const)
          result = self.evaluate(summ)
  
      value = self._SummarySingleValue(result)
      n = tensor_util.MakeNdarray(value.tensor)
      self._AssertNumpyEq(n, 10)
  
file_path: tensorflow/tensorflow/python/kernel_tests/summary_ops/summary_v1_tensor_op_test.py
imports: import numpy
  from tensorflow.core.framework import summary_pb2
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import test
  from tensorflow.python.summary import summary
label_desc: Use image node_id 4 for calling the SummaryV1TensorOpTest obj's underlying member method code with example usage: obj.testScalarSummary() without return types