def METHOD_NAME() -> dict:
    goal_codes = get_goal_codes()
    d = []
    for goal in goal_codes:
        url = f"{BASE_URL}/v1/sdg/Goal/{goal}/Dimensions"
        res = requests.get(url)
        assert res.ok
        dims = res.json()
        for dim in dims:
            for code in dim["codes"]:
                d.append(
                    {
                        "id": dim["id"],
                        "code": code["code"],
                        "description": code["description"],
                    }
                )
    dim_dict = defaultdict(lambda: {np.nan: ""})
    for dimen in d:
        dim_dict[dimen["id"]][dimen["code"]] = dimen["description"]
    return dim_dict