def METHOD_NAME(adata):
    import dask.array as da
    adata.obsp["a"] = da.ones((M, M))
    adata.varp["a"] = da.ones((N, N))
    assert da.all(adata.obsp["a"] == da.ones((M, M)))
    assert da.all(adata.varp["a"] == da.ones((N, N)))
    assert type(adata.obsp["a"]) == da.Array
    assert type(adata.varp["a"]) == da.Array
    h = joblib.hash(adata)
    with pytest.raises(ValueError):
        adata.obsp["b"] = da.ones((int(M / 2), M))
    with pytest.raises(ValueError):
        adata.obsp["b"] = da.ones((M, int(M * 2)))
    with pytest.raises(ValueError):
        adata.varp["b"] = da.ones((int(N / 2), 10))
    with pytest.raises(ValueError):
        adata.varp["b"] = da.ones((N, int(N * 2)))
    assert h == joblib.hash(adata)