def get_tracks_from_playlist(spotipy_obj, username, playlist_ids):
    """Gets and returns tracks from a given list of playlists.

    Parameters:
        spotipy_obj: Spotipy object
        username: Spotify username
        playlist_ids: List of playlist IDs

    Returns:
        List of all Spotipy track objects from a given set of playlist IDs.
    """

    results = spotipy_obj.user_playlist(username, playlist_ids, fields="tracks, next")
    temp_tracks = results["tracks"]

    final_tracks = temp_tracks["items"]

    while temp_tracks["next"]:
        temp_tracks = spotipy_obj.next(temp_tracks)

        final_tracks.extend(temp_tracks["items"])

    return final_tracks