class_docstr: base class for Collector and Item the test collection tree.
  Collector subclasses have children, Items are terminal nodes.
docstr: return list of all parent collectors up to self,
  starting from root of collection tree. 
docstr_tok: ["return","list","of","all","parent","collectors","up","to","self",",","starting","from","root","of","collection","tree","."]
code: def listchain(self):
      """return list of all parent collectors up to self,
      starting from root of collection tree."""
      chain = []
      item = self
      while item is not None:
          chain.append(item)
          item = item.parent
      chain.reverse()
      return chain
  
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 9 for calling the Node obj's underlying member method code with example usage: obj.listchain() and returns: chain