def iteratively_query_dict(path: list, d: dict):
    """
    Query a multidimensional dict with a list as the key.

    :param path:
    :param d:
    :return:
    """
    tmp = d
    for key in path:
        tmp = tmp[key]
    return tmp