<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def guess_finished(summary, postgame):
 """Sometimes a game is finished, but not recorded as such."""

    if postgame and postgame.complete:
        return True
    for player in summary['players']:
        if 'resign' in player['action_histogram']:
            return True
    return False