<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def score_matches(matches, score_multiplier=(1, 1)):
 """ Get scores for the given matches. Given a QuerySet of TextLogErrorMatches produce a score for each one until Good Enough™. An optional score multiplier can be passed in. """

    for match in matches:
        # generate a new score from the current match
        dividend, divisor = score_multiplier
        score = match.score * dividend / divisor

        yield (score, match.classified_failure_id)