code: def test_wrapper_call(self):
      cmd = textwrap.dedent(
          """
              class MyList(list):
                  def __init__(self):
                      super(*[]).__init__()   # wrapper_call()
  
              id("first break point")
              l = MyList()
          """
      )
      cmds_after_breakpoint = ["break wrapper_call", "continue"]
      if CET_PROTECTION:
          # bpo-32962: same case as in get_stack_trace():
          # we need an additional 'next' command in order to read
          # arguments of the innermost function of the call stack.
          cmds_after_breakpoint.append("next")
      cmds_after_breakpoint.append("py-bt")
  
      # Verify with "py-bt":
      gdb_output = self.get_stack_trace(
          cmd, cmds_after_breakpoint=cmds_after_breakpoint
      )
      self.assertRegex(
          gdb_output,
          r"<method-wrapper u?'__init__' of MyList object at ",
      )
  
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 5 for calling the PyBtTests obj's underlying member method code with example usage: obj.test_wrapper_call() without return types