code: def test_string_value(self):
      # Use str.* in regex because PY3 numpy refers to string arrays using
      # length-dependent type names in the format "str%d" % (32 * len(str)).
      with self.assertRaisesRegex(
          (ValueError, tf.errors.UnimplementedError), r"Cast str.*float"
      ):
          self.scalar("a", np.array("113"))
  
imports: import glob
  import os
  import numpy
  import tensorflow
  from tensorboard.compat import tf2
  from tensorboard.compat.proto import summary_pb2
  from tensorboard.plugins.scalar import metadata
  from tensorboard.plugins.scalar import summary
  from tensorboard.util import tensor_util
label_desc: Use image node_id 8 for calling the SummaryBaseTest obj's underlying member method code with example usage: obj.test_string_value() without return types