class_docstr: base class for Collector and Item the test collection tree.
  Collector subclasses have children, Items are terminal nodes.
code: def _repr_failure_py(self, excinfo, style=None):
      if excinfo.errisinstance(fail.Exception):
          if not excinfo.value.pytrace:
              return six.text_type(excinfo.value)
      fm = self.session._fixturemanager
      if excinfo.errisinstance(fm.FixtureLookupError):
          return excinfo.value.formatrepr()
      tbfilter = True
      if self.config.getoption("fulltrace", False):
          style = "long"
      else:
          tb = _pytest._code.Traceback([excinfo.traceback[-1]])
          self._prunetraceback(excinfo)
          if len(excinfo.traceback) == 0:
              excinfo.traceback = tb
          tbfilter = False  # prunetraceback already does it
          if style == "auto":
              style = "long"
      # XXX should excinfo.getrepr record all data and toterminal() process it?
      if style is None:
          if self.config.getoption("tbstyle", "auto") == "short":
              style = "short"
          else:
              style = "long"
  
      if self.config.getoption("verbose", 0) > 1:
          truncate_locals = False
      else:
          truncate_locals = True
  
      try:
          os.getcwd()
          abspath = False
      except OSError:
          abspath = True
  
      return excinfo.getrepr(
          funcargs=True,
          abspath=abspath,
          showlocals=self.config.getoption("showlocals", False),
          style=style,
          tbfilter=tbfilter,
          truncate_locals=truncate_locals,
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import warnings
  import py
  import six
  import _pytest._code
  from _pytest.compat import getfslineno
  from _pytest.mark.structures import NodeKeywords
  from _pytest.outcomes import fail
label_desc: Use image node_id 19 for calling the Node obj's underlying member method code with example usage: obj._repr_failure_py(excinfo, style) and returns: excinfo, excinfo, six