code: def pdblist(self, request):
      monkeypatch = request.getfixturevalue("monkeypatch")
      pdblist = []
  
      def mypdb(*args):
          pdblist.append(args)
  
      plugin = request.config.pluginmanager.getplugin("debugging")
      monkeypatch.setattr(plugin, "post_mortem", mypdb)
      return pdblist
  
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 1 for calling the TestPDB obj's underlying member method code with example usage: obj.pdblist(request) and returns: pdblist