code: def testWithSession(self):
      options = config_pb2.RunOptions()
      options.trace_level = config_pb2.RunOptions.FULL_TRACE
      run_metadata = config_pb2.RunMetadata()
  
      with session.Session(config=no_rewrite_session_config()) as sess:
          a = constant_op.constant([1, 2, 3])
          b = constant_op.constant([2, 2, 1])
          result = math_ops.add(a, b)
  
          sess.run(result, options=options, run_metadata=run_metadata)
  
          prof_analyzer = profile_analyzer_cli.ProfileAnalyzer(
              sess.graph, run_metadata
          )
          prof_output = prof_analyzer.list_profile([]).lines
  
          _assert_at_least_one_line_matches("Device 1 of", prof_output)
          expected_headers = [
              "Node",
              r"Start Time \(us\)",
              r"Op Time \(.*\)",
              r"Exec Time \(.*\)",
              r"Filename:Lineno\(function\)",
          ]
          _assert_at_least_one_line_matches(
              ".*".join(expected_headers), prof_output
          )
          _assert_at_least_one_line_matches(r"^Add/", prof_output)
          _assert_at_least_one_line_matches(
              r"Device Total", prof_output
          )
  
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 4 for calling the ProfileAnalyzerListProfileTest obj's underlying member method code with example usage: obj.testWithSession() without return types