code: def test_scalar_summary(self, scope, skip_summary=False):
      scoped_summary = _TPUScopedSummary(
          self.test_subdirectory, scope=scope, skip_summary=skip_summary
      )
      i = tf.constant(3)
      with tf.name_scope("outer"):
          scoped_summary.scalar("inner", i)
      self.write_summaries(scoped_summary)
      if skip_summary:
          return
      events = self.read_single_event_from_eventfile(scoped_summary)
      values = events[0].summary.value
      self.assertLen(values, 1)
      self.assertEqual(values[0].tag, "outer/inner")
      self.assertEqual(values[0].simple_value, 3.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 TPUScopedSummaryTest obj's underlying member method code with example usage: obj.test_scalar_summary(scope, skip_summary) without return types