class_docstr: Collector instances create children through collect()
  and thus iteratively build a tree.
code: def _prunetraceback(self, excinfo):
      if hasattr(self, "fspath"):
          traceback = excinfo.traceback
          ntraceback = traceback.cut(path=self.fspath)
          if ntraceback == traceback:
              ntraceback = ntraceback.cut(excludepath=tracebackcutdir)
          excinfo.traceback = ntraceback.filter()
  
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 3 for calling the Collector obj's underlying member method code with example usage: obj._prunetraceback(excinfo) without return types