human
I wrote the below code

    def do_test(self):
        u'\n                                Test    to    perform\n                                '
        show = TVShow(1, int(cur_data[u'tvdbid']))
        show.name = cur_name
        show.quality = ((common.ANY | common.Quality.UNKNOWN) | common.Quality.RAWHDTV)
        show.saveToDB()
        sickbeard.showList.append(show)
        for ep_number in cur_data[u'e']:
            episode = TVEpisode(show, cur_data[u's'], ep_number)
            episode.status = common.WANTED
            episode.scene_season = cur_data[u's']
            episode.scene_episode = ep_number
            episode.saveToDB()
            cur_provider.show = show
            season_strings = cur_provider._get_season_search_strings(episode)
            episode_strings = cur_provider._get_episode_search_strings(episode)
            fail = False
            cur_string = u''
            for cur_string in (season_strings, episode_strings):
                if (not all([isinstance(cur_string, list), isinstance(cur_string[0], dict)])):
                    print(u'{0}    is    using    a    wrong    string    format!'.format(cur_provider.name))
                    print(cur_string)
                    fail = True
                    continue
            if fail:
                continue
            try:
                assert (season_strings == cur_data[u's_strings'])
                assert (episode_strings == cur_data[u'e_strings'])
            except AssertionError:
                print(u'{0}    is    using    a    wrong    string    format!'.format(cur_provider.name))
                print(cur_string)
                continue
            search_strings = episode_strings[0]
            if (not cur_provider.public):
                continue
            items = cur_provider.search(search_strings)
            if (not items):
                print(u'No    results    from    cur_provider?')
                continue
            (title, url) = cur_provider._get_title_and_url(items[0])
            for word in...

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def generator(cur_data, cur_name, cur_provider):