code: def testLocateTensorElement2DNoEllipsisWithNumericSummary(self):
      a = np.linspace(0.0, 1.0 - 1.0 / 16.0, 16).reshape([4, 4])
  
      out = tensor_format.format_tensor(
          a, "a", include_numeric_summary=True
      )
  
      cli_test_utils.assert_lines_equal_ignoring_whitespace(
          self,
          [
              'Tensor "a":',
              "",
              "Numeric summary:",
              "|  0  + | total |",
              "|  1 15 |    16 |",
              "|           min           max          mean           std |",
          ],
          out.lines[:6],
      )
      cli_test_utils.assert_array_lines_close(
          self, [0.0, 0.9375, 0.46875, 0.28811076429], out.lines[6:7]
      )
      cli_test_utils.assert_array_lines_close(self, a, out.lines[8:])
  
      self._checkTensorElementLocations(out, a)
  
      with self.assertRaisesRegex(
          ValueError, "Indices exceed tensor dimensions"
      ):
          tensor_format.locate_tensor_element(out, [1, 4])
  
      with self.assertRaisesRegex(
          ValueError, "Indices contain negative"
      ):
          tensor_format.locate_tensor_element(out, [-1, 2])
  
      with self.assertRaisesRegex(ValueError, "Dimensions mismatch"):
          tensor_format.locate_tensor_element(out, [0])
  
imports: import re
  import numpy
  from tensorflow.core.framework import tensor_pb2
  from tensorflow.core.framework import tensor_shape_pb2
  from tensorflow.core.framework import types_pb2
  from tensorflow.python.debug.cli import cli_test_utils
  from tensorflow.python.debug.cli import tensor_format
  from tensorflow.python.debug.lib import debug_data
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 26 for calling the RichTextLinesTest obj's underlying member method code with example usage: obj.testLocateTensorElement2DNoEllipsisWithNumericSummary() without return types