code: def pytest_addoption(parser):
      group = parser.getgroup("general")
      group.addoption(
          "--sw",
          "--stepwise",
          action="store_true",
          dest="stepwise",
          help="exit on test failure and continue from last failing test next time",
      )
      group.addoption(
          "--stepwise-skip",
          action="store_true",
          dest="stepwise_skip",
          help="ignore the first failing test but stop on the next failing test",
      )
  
file_path: catboost/contrib/python/pytest/py2/_pytest/stepwise.py
imports: import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: pytest_addoption(parser) without return types