def get_playlists(spotify) -> dict:
    """Returns a dict excluding tracks like:
    {"Playlist_name": {
        "id": "playlist_id",
        "image_url": "the_url_to_the_icon_of_the_playlist"
    }
        }"""

    playlists = {
        str(item["name"]): {
            "id": item["id"],
            "image_url": item["images"][0]["url"]
            if not item["images"] == []
            else "noIcon",
        }
        for item in spotify.current_user_playlists()["items"]
        if item["owner"]["id"] == spotify.me()["id"]
    }

    return playlists