def read_data_from(file_: str) -> dict:
    """Get ingredients and allergens from file."""
    foods = {}
    fio = open(file_, "r")
    for idx, food in enumerate(fio):
        foods[idx] = {
            "ingredients": food.split(" (")[0].split(" "),
            "allergens": food[:-2].split("(contains ")[1].split(", ")
        }
    return foods