

def vectorize_nodes(*nodes):
    if ((len(nodes) == 1) and isinstance(nodes[0], collections.Iterable)):
        nodes = nodes[0]
    ret = []
    parents = {node.parent: node for node in nodes}
    last_parent = None
    for _ in range(len(parents)):
        node = parents[last_parent]
        ret.append(node)
        last_parent = node.id
    return _

dataset/ETHPy150Open conceptsandtraining/libtree/libtree/utils.py vectorize_nodes/VarMisuse@103/114 `ret`->`_`