def _filter_out_duplicate_spotify_artists(spotify_artists):
    """
    We should not try to add the same artist multiple times to the graph, so filter
    out any duplicates.
    """
    spotify_artist_dictionary = {
        spotify_artist.id: spotify_artist for spotify_artist in spotify_artists
    }

    return list(spotify_artist_dictionary.values())