def METHOD_NAME(collection):
    """
    For a given collection of tracks, return all groups
    used within that collection
    """
    groups = set()
    for track in collection:
        groups |= get_track_groups(track)
    return groups