code: def testPrintSourceWithNonexistentDeviceGivesCorrectErrorMessage(
      self,
  ):
      prof_output = self.prof_analyzer.print_source(
          [__file__, "--device_name_filter", "foo_device"]
      )
  
      _assert_at_least_one_line_matches(
          r"The source file .* does not contain any profile information for the "
          "previous Session run",
          prof_output.lines,
      )
      _assert_at_least_one_line_matches(
          r".*--device_name_filter: foo_device", prof_output.lines
      )
  
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 8 for calling the ProfileAnalyzerPrintSourceTest obj's underlying member method code with example usage: obj.testPrintSourceWithNonexistentDeviceGivesCorrectErrorMessage() without return types