class_docstr: Plugin which implements the --lf (run last-failing) option 
class_docstr_tok: ["Plugin","which","implements","the","--","lf","(","run","last-failing",")","option"]
docstr: Returns a set with all Paths()s of the previously failed nodeids (cached).
          
docstr_tok: ["Returns","a","set","with","all","Paths","(",")","s","of","the","previously","failed","nodeids","(","cached",")","."]
code: def last_failed_paths(self):
      """Returns a set with all Paths()s of the previously failed nodeids (cached)."""
      try:
          return self._last_failed_paths
      except AttributeError:
          rootpath = Path(self.config.rootdir)
          result = {
              rootpath / nodeid.split("::")[0]
              for nodeid in self.lastfailed
          }
          result = {x for x in result if x.exists()}
          self._last_failed_paths = result
          return result
  
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 2 for calling the LFPlugin obj's underlying member method code with example usage: obj.last_failed_paths() and returns: self, result