code: def pytest_configure(config):
      if config.option.runxfail:
          # yay a hack
          import pytest
  
          old = pytest.xfail
          config._cleanup.append(lambda: setattr(pytest, "xfail", old))
  
          def nop(*args, **kwargs):
              pass
  
          nop.Exception = xfail.Exception
          setattr(pytest, "xfail", nop)
  
      config.addinivalue_line(
          "markers",
          "skip(reason=None): skip the given test function with an optional reason. "
          'Example: skip(reason="no way of currently testing this") skips the '
          "test.",
      )
      config.addinivalue_line(
          "markers",
          "skipif(condition): skip the given test function if eval(condition) "
          "results in a True value.  Evaluation happens within the "
          "module global context. Example: skipif('sys.platform == \"win32\"') "
          "skips the test if we are on the win32 platform. see "
          "https://docs.pytest.org/en/latest/skipping.html",
      )
      config.addinivalue_line(
          "markers",
          "xfail(condition, reason=None, run=True, raises=None, strict=False): "
          "mark the test function as an expected failure if eval(condition) "
          "has a True value. Optionally specify a reason for better reporting "
          "and run=False if you don't even want to execute the test function. "
          "If only specific exception(s) are expected, you can list them in "
          "raises, and if the test fails in other ways, it will be reported as "
          "a true failure. See https://docs.pytest.org/en/latest/skipping.html",
      )
  
file_path: catboost/contrib/python/pytest/py2/_pytest/skipping.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from _pytest.config import hookimpl
  from _pytest.mark.evaluate import MarkEvaluator
  from _pytest.outcomes import fail
  from _pytest.outcomes import skip
  from _pytest.outcomes import xfail
label_desc: Use image node_id 2 for calling a global function with example usage: pytest_configure(config) without return types