code: def test_pdb_on_KeyboardInterrupt(self, pytester, pdblist) -> None:
      rep = runpdb_and_get_report(
          pytester,
          """
              def test_func():
                  raise KeyboardInterrupt
          """,
      )
      assert rep.failed
      assert len(pdblist) == 1
  
imports: import os
  import sys
  from typing import List
  import _pytest._code
  import pytest
  from _pytest.debugging import _validate_usepdb_cls
  from _pytest.monkeypatch import MonkeyPatch
  from _pytest.pytester import Pytester
label_desc: Use image node_id 7 for calling the TestPDB obj's underlying member method code with example usage: obj.test_pdb_on_KeyboardInterrupt(pytester, pdblist) without return types