code: def testFormatTensorHighlightsTensorNameWithDebugOp(self):
      tensor_name = "a_tensor:0"
      debug_op = "DebugIdentity"
      a = np.zeros(2)
      out = tensor_format.format_tensor(
          a,
          "%s:%s" % (tensor_name, debug_op),
          np_printoptions={"linewidth": 40},
      )
      self.assertEqual(
          [
              (8, 8 + len(tensor_name), "bold"),
              (
                  8 + len(tensor_name) + 1,
                  8 + len(tensor_name) + 1 + len(debug_op),
                  "yellow",
              ),
          ],
          out.font_attr_segs[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 9 for calling the RichTextLinesTest obj's underlying member method code with example usage: obj.testFormatTensorHighlightsTensorNameWithDebugOp() without return types