import json


def load_weather_data(file_path):
    """Given the `file_path` to the file containing the weather data in JSON format,
    this function loads the data back into a dictionary and returns it."""

    with open(file_path) as weather_input:
        weather_data = json.load(weather_input)
    return weather_data