def getConstituents(jet, node_id, outers_list):
    '\n    Recursive function to get a list of the tree leaves\n    '
    if (jet['tree'][(node_id, 0)] == (- 1)):
        outers_list.append(jet['content'][node_id])
    else:
        getConstituents(jet, jet['tree'][(node_id, 0)], outers_list)
        getConstituents(jet, jet['tree'][(node_id, 1)], outers_list)
    return outers_list
Recursive function to get a list of the tree leaves
def getConstituents(jet, node_id, outers_list):
    '\n    \n    '
    if (jet['tree'][(node_id, 0)] == (- 1)):
        outers_list.append(jet['content'][node_id])
    else:
        getConstituents(jet, jet['tree'][(node_id, 0)], outers_list)
        getConstituents(jet, jet['tree'][(node_id, 1)], outers_list)
    return outers_list