def get_parent_name_by_child_name_for_tree(tree):
    """
    Return dictionary mapping child node names to parent node names
    """
    parents = {}
    for clade in tree.find_clades(order='level'):
        for child in clade:
            parents[child.name] = clade.name
    return parents
