import csv


def get_zip_rate_areas(file_path):
    """
    reads zips.csv file and returns the content as a dictionary

    Args:
        file_path: the path to zips.csv file
    
    Returns:
        a dictionary mapping each zip code into a set of rate areas
    """
    zip_rate_areas = dict()
    with open(file_path, "r") as zip_codes_file:
        csv_reader = csv.DictReader(zip_codes_file, delimiter=",")
        for line in csv_reader:
            zipcode = line["zipcode"]
            rate_area = f"{line['state']} {line['rate_area']}"

            if zipcode not in zip_rate_areas:
                zip_rate_areas[zipcode] = set()
            zip_rate_areas[zipcode].add(rate_area)
    return zip_rate_areas