code: def test_summarizing_variable(self, scope):
      scoped_summary = _ScopedSummary(scope)
      with self.test_session() as s:
          c = tf.constant(42.0)
          v = tf.Variable(c)
          ss = scoped_summary.scalar("summary", v)
          init = tf.global_variables_initializer()
          s.run(init)
          summ_str = s.run(ss)
      summary = tf.Summary()
      summary.ParseFromString(summ_str)
      self.assertLen(summary.value, 1)
      value = summary.value[0]
      self.assertEqual(value.tag, "summary")
      self.assertEqual(value.simple_value, 42.0)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import functools
  import os
  from absl.testing import parameterized
  from adanet import tf_compat
  from adanet.core import testing_utils
  from adanet.core.summary import _ScopedSummary
  from adanet.core.summary import _TPUScopedSummary
  from adanet.core.summary import monkey_patched_summaries
  from six.moves import range
  import tensorflow.compat.v1
  from tensorflow.python.ops import summary_ops_v2
label_desc: Use image node_id 4 for calling the ScopedSummaryTest obj's underlying member method code with example usage: obj.test_summarizing_variable(scope) without return types