code: def testPrintSourceWithNodeNameFilter(self):
      prof_output = self.prof_analyzer.print_source(
          [__file__, "--node_name_filter", "x$"]
      )
  
      _assert_at_least_one_line_matches(
          r"\[(\|)+(\s)*\] .*us .*1\(1\) .*L%d.*(\S)+" % self.x_lineno,
          prof_output.lines,
      )
      _assert_no_lines_match(
          r"\[(\|)+(\s)*\] .*us .*2\(22\) .*L%d.*(\S)+"
          % self.loop_cond_lineno,
          prof_output.lines,
      )
      _assert_no_lines_match(
          r"\[(\|)+(\s)*\] .*us .*2\(20\) .*L%d.*(\S)+"
          % self.loop_body_lineno,
          prof_output.lines,
      )
      _assert_no_lines_match(
          r"\[(\|)+(\s)*\] .*ms .*7\(55\) .*L%d.*(\S)+"
          % self.loop_lineno,
          prof_output.lines,
      )
  
      # Check clickable link.
      _, line_index = _at_least_one_line_matches(
          r"\[(\|)+(\s)*\] .*us .*1\(1\) .*L%d.*(\S)+" % self.x_lineno,
          prof_output.lines,
      )
      any_menu_item_match = False
      for seg in prof_output.font_attr_segs[line_index]:
          if (
              isinstance(seg[2][1], debugger_cli_common.MenuItem)
              and seg[2][1].content.startswith("lp --file_path_filter ")
              and "--node_name_filter x$" in seg[2][1].content
              and "--min_lineno %d" % self.x_lineno in seg[2][1].content
              and "--max_lineno %d" % (self.x_lineno + 1)
              in seg[2][1].content
          ):
              any_menu_item_match = True
              break
      self.assertTrue(any_menu_item_match)
  
imports: import re
  from tensorflow.core.framework import step_stats_pb2
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.core.protobuf import rewriter_config_pb2
  from tensorflow.python.client import session
  from tensorflow.python.debug.cli import debugger_cli_common
  from tensorflow.python.debug.cli import profile_analyzer_cli
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import while_loop
  from tensorflow.python.platform import googletest
  from tensorflow.python.platform import test
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 6 for calling the ProfileAnalyzerPrintSourceTest obj's underlying member method code with example usage: obj.testPrintSourceWithNodeNameFilter() without return types