def get_lowest_cost_path(paths):
    """
    Gets the path with the lowest cost from a set of paths.
    paths is a set of format: {((node_1,..., node_n), cost)}.
    Returns path with format: ((node, node, node), cost).
    """  
    
    return min(paths, key = lambda t: t[1])