code: def pytest_collectreport(self, report):
      if not report.passed:
          if report.failed:
              code = "F"
              longrepr = str(report.longrepr)
          else:
              assert report.skipped
              code = "S"
              longrepr = "%s:%d: %s" % report.longrepr
          self.log_outcome(report, code, longrepr)
  
file_path: catboost/contrib/python/pytest/py2/_pytest/resultlog.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import py
label_desc: Use image node_id 5 for calling the ResultLog obj's underlying member method code with example usage: obj.pytest_collectreport(report) without return types