def pairs(tree, ignore_version=True):
    """Produce a list of pairs from a tree of dependencies."""
    my_pairs = []

    if tree["children"]:
        for child in tree["children"]:
            my_pairs.append((tree["dependency"], child["dependency"],))
            my_pairs += pairs(child)

    return my_pairs