code: def parents(self, node):
          
          return [
              parent for parent in
              getattr( node, 'parents', [] )
              if getattr(parent, 'tree', self.TREE) == self.TREE
          ]
docs: Determine all parents of node in our tree