code: def test_pdb_and_capsys(self, pytester: Pytester) -> None:
      p1 = pytester.makepyfile(
          """
              import pytest
              def test_1(capsys):
                  print("hello1")
                  pytest.set_trace()
          """
      )
      child = pytester.spawn_pytest(str(p1))
      child.expect("test_1")
      child.send("capsys.readouterr()\n")
      child.expect("hello1")
      child.sendeof()
      child.read()
      self.flush(child)
  
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 22 for calling the TestPDB obj's underlying member method code with example usage: obj.test_pdb_and_capsys(pytester) without return types