code: def testNumericSummaryOnFloatMissingCategories(self):
      x = np.array([np.nan, np.nan])
      out = tensor_format.numeric_summary(x)
      self.assertEqual(2, len(out.lines))
      cli_test_utils.assert_lines_equal_ignoring_whitespace(
          self, ["| nan | total |", "|   2 |     2 |"], out.lines[:2]
      )
  
      x = np.array([-np.inf, np.inf, 0, 0, np.inf, np.inf])
      out = tensor_format.numeric_summary(x)
      cli_test_utils.assert_lines_equal_ignoring_whitespace(
          self,
          [
              "| -inf    0 +inf | total |",
              "|    1    2    3 |     6 |",
              "|  min  max mean  std |",
          ],
          out.lines[:3],
      )
      cli_test_utils.assert_array_lines_close(
          self, [0.0, 0.0, 0.0, 0.0], out.lines[3:4]
      )
  
      x = np.array([-120, 120, 130])
      out = tensor_format.numeric_summary(x)
      cli_test_utils.assert_lines_equal_ignoring_whitespace(
          self,
          [
              "| - + | total |",
              "| 1 2 |     3 |",
              "|       min       max     mean      std |",
          ],
          out.lines[:3],
      )
      cli_test_utils.assert_array_lines_close(
          self,
          [-120, 130, 43.3333333333, 115.566238822],
          out.lines[3:4],
      )
  
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 2 for calling the NumericSummaryTest obj's underlying member method code with example usage: obj.testNumericSummaryOnFloatMissingCategories() without return types