def get_restaurants_by_name(city_data, name):
    """Return a restaurant based on name."""
    # type: (Dict, str) -> Dict
    for r in city_data["restaurants"]:
        if r["name"] == name:
            return r
    return {}