def get_dict_path(base, path):
    """
    Get the value at the dict path ``path`` on the dict ``base``.

    A dict path is a way to represent an item deep inside a dict structure.
    For example, the dict path ``["a", "b"]`` represents the number 42 in the
    dict ``{"a": {"b": 42}}``
    """
    path = list(path)
    level = path.pop(0)

    if path:
        return get_dict_path(base[level], path)
    return base[level]