def METHOD_NAME(cubeviz_helper, spectrum1d_cube):
    cubeviz_helper.load_data(spectrum1d_cube, "test")
    cubeviz_helper._apply_interactive_region('bqplot:ellipse', (0, 0), (9, 8))
    results_cube = cubeviz_helper.get_data(data_label="test[FLUX]",
                                           spatial_subset='Subset 1')
    assert results_cube.flux.ndim == 3
    results_false = cubeviz_helper.get_data(data_label="test[FLUX]",
                                            spatial_subset='Subset 1', function=False)
    assert results_false.flux.ndim == 3
    results_def = cubeviz_helper.get_data(data_label="test[FLUX]",
                                          spatial_subset='Subset 1', function=True)
    assert results_def.flux.ndim == 1
    results_min = cubeviz_helper.get_data(data_label="test[FLUX]",
                                          spatial_subset='Subset 1', function="minimum")
    results_max = cubeviz_helper.get_data(data_label="test[FLUX]",
                                          spatial_subset='Subset 1', function="maximum")
    assert isinstance(results_min, Spectrum1D)
    assert_quantity_allclose(results_min.flux,
                             [6., 14.] * u.Jy, atol=1e-5 * u.Jy)
    assert_quantity_allclose(results_max.flux,
                             [7., 15.] * u.Jy, atol=1e-5 * u.Jy)
    # calling without function gives cube
    assert cubeviz_helper.get_data(data_label="test[FLUX]").flux.ndim == 3
    # but calling through specviz automatically collapses
    assert cubeviz_helper.specviz.get_data(data_label="test[FLUX]").flux.ndim == 1