def _descendants(node):
    '''
    Returns the list of all nodes which are descended from the given
    tree node in some way.
    '''
    try:
        treepos = node.treepositions()
    except __HOLE__:
        return []
    return [node[x] for x in treepos[1:]]
dataset/ETHPy150Open nltk/nltk/nltk/tgrep.py/_descendants