def METHOD_NAME(provider, episodes):
    episode = list(episodes.values())[0]
    episode.series = "Sam & Max: Freelance Police"
    episode.name = "The Glazed McGuffin Affair"
    episode.title = "The Glazed McGuffin Affair"
    episode.series_imdb_id = "tt0125646"
    episode.season = 1
    episode.episode = 21
    subtitles = provider.list_subtitles(episode, {Language.fromalpha2("en")})
    assert subtitles
    subtitle = subtitles[0]
    provider.download_subtitle(subtitle)
    assert subtitle.is_valid()