class_docstr: Plugin which implements the --lf (run last-failing) option 
class_docstr_tok: ["Plugin","which","implements","the","--","lf","(","run","last-failing",")","option"]
code: def pytest_collectreport(self, report):
      passed = report.outcome in ("passed", "skipped")
      if passed:
          if report.nodeid in self.lastfailed:
              self.lastfailed.pop(report.nodeid)
              self.lastfailed.update(
                  (item.nodeid, True) for item in report.result
              )
      else:
          self.lastfailed[report.nodeid] = True
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import json
  import os
  from collections import OrderedDict
  import attr
  import py
  import six
  import pytest
  from .compat import _PY2
  from .pathlib import Path
  from .pathlib import resolve_from_str
  from .pathlib import rm_rf
label_desc: Use image node_id 6 for calling the LFPlugin obj's underlying member method code with example usage: obj.pytest_collectreport(report) without return types