code: def pytest_configure(config):
      if config.getvalue("trace"):
          config.pluginmanager.register(PdbTrace(), "pdbtrace")
      if config.getvalue("usepdb"):
          config.pluginmanager.register(PdbInvoke(), "pdbinvoke")
  
      pytestPDB._saved.append(
          (pdb.set_trace, pytestPDB._pluginmanager, pytestPDB._config)
      )
      pdb.set_trace = pytestPDB.set_trace
      pytestPDB._pluginmanager = config.pluginmanager
      pytestPDB._config = config
  
      # NOTE: not using pytest_unconfigure, since it might get called although
      #       pytest_configure was not (if another plugin raises UsageError).
      def fin():
          (
              pdb.set_trace,
              pytestPDB._pluginmanager,
              pytestPDB._config,
          ) = pytestPDB._saved.pop()
  
      config._cleanup.append(fin)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import argparse
  import pdb
  import sys
  from doctest import UnexpectedException
  from _pytest import outcomes
  from _pytest.config import hookimpl
  from _pytest.config.exceptions import UsageError
label_desc: Use image node_id 5 for calling a global function with example usage: pytest_configure(config) without return types