code: def testTextSummary(self):
      with self.cached_session():
          with self.assertRaises(ValueError):
              num = array_ops.constant(1)
              summary_lib.text("foo", num)
  
          # The API accepts vectors.
          arr = array_ops.constant(["one", "two", "three"])
          summ = summary_lib.text("foo", arr)
          self.assertEqual(summ.op.type, "TensorSummaryV2")
  
          # the API accepts scalars
          summ = summary_lib.text("foo", array_ops.constant("one"))
          self.assertEqual(summ.op.type, "TensorSummaryV2")
  
imports: from tensorflow.core.framework import summary_pb2
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import meta_graph
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.summary import summary
label_desc: Use image node_id 12 for calling the SummaryTest obj's underlying member method code with example usage: obj.testTextSummary() without return types