def METHOD_NAME():
    x = np.linspace(0, 24, 2500)
    y = np.zeros(x.shape)
    peaks = [
        [10, 3, 0.1],
        [12, 4, 0.1],
        [12, 6, 0.1],
    ]
    for peak in peaks:
        y += gaussian(x, peak[0], peak[1], peak[2])
    y_bkg = x * 0.4 + 5.0
    y_measurement = y + y_bkg
    pattern = Pattern(x, y_measurement)
    auto_background_subtraction_parameters = [2, 50, 50]
    pattern.set_auto_background_subtraction(auto_background_subtraction_parameters)
    x_spec, y_spec = pattern.data
    assert y_spec == approx(y, abs=1e-4)