def METHOD_NAME(
    submitted_magnitude: float, correct_magnitude: float
) -> bool:
    submitted_magnitude_parsed = np.float64(submitted_magnitude)
    correct_magnitude_parsed = np.float64(correct_magnitude)
    """Returns true if submitted_magnitude is close enough to correct_magnitude based on comparison algorithm"""
    if comparison is ComparisonType.EXACT:
        return submitted_magnitude_parsed == correct_magnitude_parsed
    elif comparison is ComparisonType.SIGFIG:
        return pl.is_correct_scalar_sf(
            a_sub=submitted_magnitude_parsed,
            a_tru=correct_magnitude_parsed,
            digits=digits,
        )
    elif comparison is ComparisonType.DECDIG:
        return pl.is_correct_scalar_dd(
            a_sub=submitted_magnitude_parsed,
            a_tru=correct_magnitude_parsed,
            digits=digits,
        )
    elif comparison is ComparisonType.RELABS:
        return pl.is_correct_scalar_ra(
            a_sub=submitted_magnitude_parsed,
            a_tru=correct_magnitude_parsed,
            rtol=rtol,
            atol=parsed_atol.magnitude,
        )
    assert_never(comparison)