def METHOD_NAME():
    """test that the gains are computed correctly"""
    compr_thr_inputs = [30, 40, 50]
    compr_thr_gains = [35, 35, 50]
    compressions_ratios = [1.0, 2.0, 3.0]
    levels = [0.0, 10.0, 100.0]
    expected_outputs = np.array(
        [[35.0, 55.0, 83.33333333], [35.0, 50.0, 76.66666667], [35.0, 5.0, 16.66666667]]
    )
    n_gains = len(compr_thr_inputs)
    uncorrected_gains = gains(
        compr_thr_inputs=compr_thr_inputs,
        compr_thr_gains=compr_thr_gains,
        compression_ratios=compressions_ratios,
        levels=levels,
    )
    assert uncorrected_gains.shape == (n_gains, n_gains)
    assert uncorrected_gains == pytest.approx(
        expected_outputs, rel=pytest.rel_tolerance, abs=pytest.abs_tolerance
    )