def METHOD_NAME(pnode):
    '''
    Get a list of lists which has each path flattened out.
    Example: for path in getAllPaths(pnode):
                 for node in path:
                    doStuff()
    '''
    leafs = getLeafNodes(pnode)
    paths = []
    for leaf in leafs:
        path = getPathToNode(leaf)
        paths.append(path)
    return paths