def METHOD_NAME(tid, season):
    ovrs_by_pos = {
        'QB': [],
        'RB': [],
        'TE': [],
        'WR': [],
        'OL': [],
        'CB': [],
        'S': [],
        'LB': [],
        'DL': [],
        'K': [],
        'P': [],
    }
    for p in data['players']:
        if tid in p['statsTids']:
            for ps in p['stats']:
                if ps['season'] == season and ps['tid'] == tid:
                    found_ratings = False
                    for pr in p['ratings']:
                        if pr['season'] == season:
                            found_ratings = True
                            ovrs_by_pos[pr['pos']].append(pr['ovr'])
                            break
                    if not found_ratings:
                        raise Exception("No ratings found")
                    break
                elif ps['season'] > season:
                    break
    for key in ovrs_by_pos.keys():
        ovrs_by_pos[key].sort(reverse=True)
    return ovrs_by_pos