code: def pytest_addoption(parser):
      group = parser.getgroup("general")
      group._addoption(
          "--pdb",
          dest="usepdb",
          action="store_true",
          help="start the interactive Python debugger on errors or KeyboardInterrupt.",
      )
      group._addoption(
          "--pdbcls",
          dest="usepdb_cls",
          metavar="modulename:classname",
          type=_validate_usepdb_cls,
          help="start a custom interactive Python debugger on errors. "
          "For example: --pdbcls=IPython.terminal.debugger:TerminalPdb",
      )
      group._addoption(
          "--trace",
          dest="trace",
          action="store_true",
          help="Immediately break when running each test.",
      )
  
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 4 for calling a global function with example usage: pytest_addoption(parser) without return types