code: def pytest_report_teststatus(report):
      if hasattr(report, "wasxfail"):
          if report.skipped:
              return "xfailed", "x", "XFAIL"
          elif report.passed:
              return "xpassed", "X", "XPASS"
  
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 8 for calling a global function with example usage: pytest_report_teststatus(report) and returns: str,  str,  str, str,  str,  str