code: def pytest_addoption(parser):
      """register argparse-style options and ini-style config values,
      called once at the beginning of a test run.
  
      .. note::
  
          This function should be implemented only in plugins or ``conftest.py``
          files situated at the tests root directory due to how pytest
          :ref:`discovers plugins during startup <pluginorder>`.
  
      :arg _pytest.config.Parser parser: To add command line options, call
          :py:func:`parser.addoption(...) <_pytest.config.Parser.addoption>`.
          To add ini-file values call :py:func:`parser.addini(...)
          <_pytest.config.Parser.addini>`.
  
      Options can later be accessed through the
      :py:class:`config <_pytest.config.Config>` object, respectively:
  
      - :py:func:`config.getoption(name) <_pytest.config.Config.getoption>` to
        retrieve the value of a command line option.
  
      - :py:func:`config.getini(name) <_pytest.config.Config.getini>` to retrieve
        a value read from an ini-style file.
  
      The config object is passed around on many internal objects via the ``.config``
      attribute or can be retrieved as the ``pytestconfig`` fixture.
  
      .. note::
          This hook is incompatible with ``hookwrapper=True``.
      """
  
imports: from pluggy import HookspecMarker
  from _pytest.deprecated import PYTEST_LOGWARNING
label_desc: Use image node_id 3 for calling a global function with example usage: pytest_addoption(parser) without return types