def METHOD_NAME(self):
    iface = Interface(lambda text: text, ["textbox"], ["label"])
    output_1 = {"cat": 0.9, "dog": 0.1}
    output_2 = {"cat": float("nan"), "dog": 0.4}
    output_3 = {"cat": 0.1, "dog": 0.6}
    diff = gradio.interpretation.get_regression_or_classification_value(
        iface, [output_1], [output_2]
    )
    assert diff == 0
    diff = gradio.interpretation.get_regression_or_classification_value(
        iface, [output_1], [output_3]
    )
    assert pytest.approx(diff) == 0.1