def METHOD_NAME(tmpdir):
    d_in = str(tmpdir)
    localpath = str(tmpdir.join("diags.zarr"))
    ds = xr.Dataset(
        {"a": (["time", "x"], np.ones((200, 10)))}, attrs={"path": localpath}
    )
    with tempfile.TemporaryDirectory() as d_out:
        process_item(ds, d_in, d_out, TEST_CHUNKS)
        xr.open_zarr(d_out + "/diags.zarr")