code: def test_pdb_interaction_capturing_twice(
      self, pytester: Pytester
  ) -> None:
      p1 = pytester.makepyfile(
          """
              import pytest
              def test_1():
                  i = 0
                  print("hello17")
                  pytest.set_trace()
                  x = 3
                  print("hello18")
                  pytest.set_trace()
                  x = 4
                  assert 0
          """
      )
      child = pytester.spawn_pytest(str(p1))
      child.expect(r"PDB set_trace \(IO-capturing turned off\)")
      child.expect("test_1")
      child.expect("x = 3")
      child.expect("Pdb")
      child.sendline("c")
      child.expect(r"PDB continue \(IO-capturing resumed\)")
      child.expect(r"PDB set_trace \(IO-capturing turned off\)")
      child.expect("x = 4")
      child.expect("Pdb")
      child.sendline("c")
      child.expect("_ test_1 _")
      child.expect("def test_1")
      rest = child.read().decode("utf8")
      assert "Captured stdout call" in rest
      assert "hello17" in rest  # out is captured
      assert "hello18" in rest  # out is captured
      assert "1 failed" in rest
      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 27 for calling the TestPDB obj's underlying member method code with example usage: obj.test_pdb_interaction_capturing_twice(pytester) without return types