def METHOD_NAME(make_data_path, clean_astro_ui, caplog):
    """Close to the originally-reported bug"""
    with SherpaVerbosity("ERROR"):
        ui.load_pha(make_data_path("3c273.pi"))
    assert len(caplog.records) == 0
    ui.notice(0.5, 6)
    assert len(caplog.records) == 1
    r = caplog.record_tuples[0]
    assert r[0] == "sherpa.ui.utils"
    assert r[1] == logging.INFO
    assert r[2] == "dataset 1: 0.00146:14.9504 -> 0.4672:6.57 Energy (keV)"
    # Use data.get_filter rather than ui.get_filter as can
    # control the accuracy.
    #
    data = ui.get_data()
    fstr = "0.4672:6.5700"
    assert data.get_filter(format="%.4f") == fstr
    ui.set_grouping([1] * 1024)
    assert len(caplog.records) == 2
    assert data.get_filter(format="%.4f") == fstr
    r = caplog.record_tuples[1]
    assert r[0] == "sherpa.ui.utils"
    assert r[1] == logging.INFO
    assert r[2] == "dataset 1: 0.4672:6.57 Energy (keV) (unchanged)"