def METHOD_NAME(ctx, ds, benchmark):
    if hasattr(ds, '_array') and isinstance(ds._array, da.Array):
        def doit():
            res = ds._array.sum(axis=(0, 1))
            res.compute()
        benchmark(doit)
    else:
        pytest.skip("Not a Dask array")