docstr: Verify that the "py-bt" command works
docstr_tok: ["Verify","that","the","``","py-bt","''","command","works"]
code: def test_bt(self):
      'Verify that the "py-bt" command works'
      bt = self.get_stack_trace(
          script=SAMPLE_SCRIPT, cmds_after_breakpoint=["py-bt"]
      )
      self.assertMultilineMatches(
          bt,
          r"""^.*
  Traceback \(most recent call first\):
    <built-in method id of module object .*>
    File ".*gdb_sample.py", line 10, in baz
      id\(42\)
    File ".*gdb_sample.py", line 7, in bar
      baz\(a, b, c\)
    File ".*gdb_sample.py", line 4, in foo
      bar\(a=a, b=b, c=c\)
    File ".*gdb_sample.py", line 12, in <module>
      foo\(1, 2, 3\)
  """,
      )
  
file_path: cpython/Lib/test/test_gdb/test_backtrace.py
imports: import textwrap
  import unittest
  from test import support
  from test.support import python_is_optimized
  from .util import setup_module, DebuggerTests, CET_PROTECTION, SAMPLE_SCRIPT
label_desc: Use image node_id 1 for calling the PyBtTests obj's underlying member method code with example usage: obj.test_bt() without return types