def create_missing_path(dict_: dict, path: list) -> dict:
    """Recursively create the specified path in the declared dict."""
    try:
        subfolder = path.pop(0)
        dict_[subfolder] = {}
        return create_missing_path(dict_[subfolder], path)
    except IndexError:
        return dict_