code: def test_pdb_wrapper_class_is_reused(pytester: Pytester) -> None:
      p1 = pytester.makepyfile(
          """
          def test():
              __import__("pdb").set_trace()
              __import__("pdb").set_trace()
  
              import mypdb
              instances = mypdb.instances
              assert len(instances) == 2
              assert instances[0].__class__ is instances[1].__class__
          """,
          mypdb="""
          instances = []
  
          class MyPdb:
              def __init__(self, *args, **kwargs):
                  instances.append(self)
  
              def set_trace(self, *args):
                  print("set_trace_called", args)
          """,
      )
      result = pytester.runpytest(
          str(p1), "--pdbcls=mypdb:MyPdb", syspathinsert=True
      )
      assert result.ret == 0
      result.stdout.fnmatch_lines(
          [
              "*set_trace_called*",
              "*set_trace_called*",
              "* 1 passed in *",
          ]
      )
  
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 12 for calling a global function with example usage: test_pdb_wrapper_class_is_reused(pytester) without return types