code: def pytest_addoption(parser: Parser) -> None:
      group = parser.getgroup("debugconfig")
      group.addoption(
          "--assert",
          action="store",
          dest="assertmode",
          choices=("rewrite", "plain"),
          default="rewrite",
          metavar="MODE",
          help=(
              "Control assertion debugging tools.\n"
              "'plain' performs no assertion debugging.\n"
              "'rewrite' (the default) rewrites assert statements in test modules"
              " on import to provide assert expression information."
          ),
      )
      parser.addini(
          "enable_assertion_pass_hook",
          type="bool",
          default=False,
          help="Enables the pytest_assertion_pass hook. "
          "Make sure to delete any previously generated pyc cache files.",
      )
  
imports: import sys
  from typing import Any
  from typing import Generator
  from typing import List
  from typing import Optional
  from typing import TYPE_CHECKING
  from _pytest.assertion import rewrite
  from _pytest.assertion import truncate
  from _pytest.assertion import util
  from _pytest.assertion.rewrite import assertstate_key
  from _pytest.config import Config
  from _pytest.config import hookimpl
  from _pytest.config.argparsing import Parser
  from _pytest.nodes import Item
label_desc: Use image node_id 1 for calling a global function with example usage: pytest_addoption(parser) without return types