code: def check_strict_xfail(pyfuncitem):
      """check xfail(strict=True) for the given PASSING test"""
      evalxfail = pyfuncitem._evalxfail
      if evalxfail.istrue():
          strict_default = pyfuncitem.config.getini("xfail_strict")
          is_strict_xfail = evalxfail.get("strict", strict_default)
          if is_strict_xfail:
              del pyfuncitem._evalxfail
              explanation = evalxfail.getexplanation()
              fail("[XPASS(strict)] " + explanation, pytrace=False)
  
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 6 for calling a global function with example usage: check_strict_xfail(pyfuncitem) without return types