def extract_boxed_answer(solution: str) -> str:
    """Extract the answer from inside a LaTeX \\boxed{} command"""
    solution = last_boxed_only_string(solution)
    solution = remove_boxed(solution)
    return solution
Extract the answer from inside a LaTeX \boxed{} command
understand_r1_zero/math_grader.py