code: def test_summarizing_variable(self, scope):
      scoped_summary = _ScopedSummaryV2(
          self.test_subdirectory, scope=scope
      )
      c = tf.constant(42.0)
      v = tf.Variable(c)
      scoped_summary.scalar("summary", v)
      self.write_summaries(scoped_summary)
      events = self.read_single_event_from_eventfile(scoped_summary)
      values = events[0].summary.value
      self.assertLen(values, 1)
      value = values[0]
      self.assertEqual(value.tag, "summary")
      self.assertEqual(simple_value(value), 42.0)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import struct
  from absl.testing import parameterized
  from adanet import tf_compat
  from adanet.core import testing_utils
  from adanet.core.summary import _ScopedSummaryV2
  import tensorflow.compat.v2
  from tensorflow.python.eager import context
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 5 for calling the ScopedSummaryV2Test obj's underlying member method code with example usage: obj.test_summarizing_variable(scope) without return types