def _leftmost_descendants(node):
    '''
    Returns the set of all nodes descended in some way through
    left branches from this node.
    '''
    try:
        treepos = node.treepositions()
    except __HOLE__:
        return []
    return [node[x] for x in treepos[1:] if all(y == 0 for y in x)]
dataset/ETHPy150Open nltk/nltk/nltk/tgrep.py/_leftmost_descendants