code: def testFormatSummarizeTwo(self):
      with self.cached_session():
          tensor = array_ops.reshape(math_ops.range(100), [10, 10])
          format_output = string_ops.string_format(
              "tensor summary: {}", tensor, summarize=2
          )
          out = self.evaluate(format_output)
          expected = (
              "tensor summary: [[0 1 ... 8 9]\n"
              " [10 11 ... 18 19]\n"
              " ...\n"
              " [80 81 ... 88 89]\n"
              " [90 91 ... 98 99]]"
          )
          self.assertEqual(compat.as_text(out), expected)
  
imports: from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import string_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.util import compat
label_desc: Use image node_id 19 for calling the StringFormatOpTest obj's underlying member method code with example usage: obj.testFormatSummarizeTwo() without return types