def METHOD_NAME(self) -> None:
    # Use .mean() for all tests: a typical reduction operation
    ds = create_test_dataset_attrs()
    original_attrs = ds.attrs
    # Test default behaviour
    result = ds.mean()
    assert result.attrs == {}
    with xarray.set_options(keep_attrs="default"):
        result = ds.mean()
        assert result.attrs == {}
    with xarray.set_options(keep_attrs=True):
        result = ds.mean()
        assert result.attrs == original_attrs
    with xarray.set_options(keep_attrs=False):
        result = ds.mean()
        assert result.attrs == {}