code: def pytest_runtest_logreport(self, report):
      if report.when != "call" and report.passed:
          return
      res = self.config.hook.pytest_report_teststatus(
          report=report, config=self.config
      )
      code = res[1]
      if code == "x":
          longrepr = str(report.longrepr)
      elif code == "X":
          longrepr = ""
      elif report.passed:
          longrepr = ""
      elif report.failed:
          longrepr = str(report.longrepr)
      elif report.skipped:
          longrepr = str(report.longrepr[2])
      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 4 for calling the ResultLog obj's underlying member method code with example usage: obj.pytest_runtest_logreport(report) without return types