code: def runpdb(pytester: Pytester, source: str):
      p = pytester.makepyfile(source)
      return pytester.runpytest_inprocess("--pdb", p)
  
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 2 for calling a global function with example usage: runpdb(pytester, source) and returns: pytester