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 __init__(self, config):
      self.config = config
      active_keys = "lf", "failedfirst"
      self.active = any(config.getoption(key) for key in active_keys)
      self.lastfailed = config.cache.get("cache/lastfailed", {})
      self._previously_failed_count = None
      self._report_status = None
      self._skipped_files = 0
  
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 1 to create a new LFPlugin object from inherited base classes: object with example: obj = LFPlugin(config)