def safe_equal(prediction, answer):
    """
    Check if the prediction is equal to the answer, even if they are of different types
    """
    try:
        if prediction == answer:
            return True
        return False
    except Exception as e:
        print(e)
        return False

    Check if the prediction is equal to the answer, even if they are of different types
    
internvl_chat/eval/mathvista/calculate_score.py