human
Here's a good function header given the following:
I wrote the below code

    def no_process(x):
        return x
    try:
        if ((choices is None) or (len(choices) == 0)):
            raise StopIteration
    except TypeError:
        pass
    if (processor is None):
        processor = no_process
    processed_query = processor(query)
    if (len(processed_query) == 0):
        logging.warning(u"Applied    processor    reduces    input    query    to    empty    string,    all    comparisons    will    have    score    0.    [Query:    '{0}']".format(query))
    if ((scorer in [fuzz.WRatio, fuzz.QRatio, fuzz.token_set_ratio, fuzz.token_sort_ratio, fuzz.partial_token_set_ratio, fuzz.partial_token_sort_ratio, fuzz.UWRatio, fuzz.UQRatio]) and (processor == utils.full_process)):
        processor = no_process
    if (scorer in [fuzz.UWRatio, fuzz.UQRatio]):
        pre_processor = partial(utils.full_process, force_ascii=False)
        scorer = partial(scorer, full_process=False)
    elif (scorer in [fuzz.WRatio, fuzz.QRatio, fuzz.token_set_ratio, fuzz.token_sort_ratio, fuzz.partial_token_set_ratio, fuzz.partial_token_sort_ratio]):
        pre_processor = partial(utils.full_process, force_ascii=True)
        scorer = partial(scorer, full_process=False)
    else:
        pre_processor = no_process
    processed_query = pre_processor(processed_query)
    try:
        for (key, choice) in choices.items():
            processed = pre_processor(processor(choice))
            score = scorer(processed_query, processed)
            if (score >= score_cutoff):
                (yield (choice, score, key))
    except AttributeError:
        for choice in choices:
            processed = pre_processor(processor(choice))
            score = scorer(processed_query, processed)
            if (score >= score_cutoff):
                (yield (choice, score))

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

def extractWithoutOrder(query, choices, processor=default_processor, scorer=default_scorer, score_cutoff=0):