code: def testFormatOneTensorTwoDimLessThanSummarize(self):
      with self.cached_session():
          tensor = array_ops.reshape(math_ops.range(4), [2, 2])
          format_output = string_ops.string_format(
              "{}", tensor, summarize=3
          )
          out = self.evaluate(format_output)
          expected = "[[0 1]\n" " [2 3]]"
          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 9 for calling the StringFormatOpTest obj's underlying member method code with example usage: obj.testFormatOneTensorTwoDimLessThanSummarize() without return types