code: def pytest_addoption(parser: Parser) -> None:
      group = parser.getgroup("general")
      group.addoption(
          "--sw",
          "--stepwise",
          action="store_true",
          default=False,
          dest="stepwise",
          help="Exit on test failure and continue from last failing test next time",
      )
      group.addoption(
          "--sw-skip",
          "--stepwise-skip",
          action="store_true",
          default=False,
          dest="stepwise_skip",
          help="Ignore the first failing test but stop on the next failing test. "
          "Implicitly enables --stepwise.",
      )
  
file_path: catboost/contrib/python/pytest/py3/_pytest/stepwise.py
imports: from typing import List
  from typing import Optional
  from typing import TYPE_CHECKING
  import pytest
  from _pytest import nodes
  from _pytest.config import Config
  from _pytest.config.argparsing import Parser
  from _pytest.main import Session
  from _pytest.reports import TestReport
label_desc: Use image node_id 1 for calling a global function with example usage: pytest_addoption(parser) without return types