def cleanup_final_reranked_results(reranked_results: Dict) -> None:
    """removes the fields that were created for the reranking process

    Args:
        reranked_results (Dict[List]): _description_
    """
    for result in reranked_results[ResultsFields.hits]:
        # replace original with reranked score
        # could also do a hybrid score
        if ResultsFields.reranker_score in result:
            result[ResultsFields.original_score] = result[ResultsFields.reranker_score]
            del result[ResultsFields.reranker_score]

        # replace highlights with reranked highlights
        if ResultsFields.highlights_reranked in result:
            result[ResultsFields.highlights] = result[ResultsFields.highlights_reranked]
            del result[ResultsFields.highlights_reranked]
        
        # remove our own internal id from the reranking process
        if ResultsFields.reranked_id in result:
            del result[ResultsFields.reranked_id]
removes the fields that were created for the reranking process

    Args:
        reranked_results (Dict[List]): _description_
    
src/marqo/s2_inference/reranking/rerank.py