def METHOD_NAME(adata):
    tempdir = tempfile.TemporaryDirectory()
    output_path = tempdir.name
    tiledbsoma.io.from_anndata(output_path, adata, measurement_name="RNA")
    with tiledbsoma.Experiment.open(output_path) as exp:
        o1 = exp.obs.schema
        v1 = exp.ms["RNA"].var.schema
    new_obs = adata.obs
    new_var = adata.var
    new_obs["groups"] = np.arange(new_obs.shape[0], dtype=np.int16)
    new_var["vst.mean"] = np.arange(new_var.shape[0], dtype=np.int32)
    with tiledbsoma.Experiment.open(output_path, "w") as exp:
        with pytest.raises(ValueError):
            tiledbsoma.io.update_obs(exp, new_obs)
        with pytest.raises(ValueError):
            tiledbsoma.io.update_var(exp, new_var, "RNA")
    with tiledbsoma.Experiment.open(output_path) as exp:
        o2 = exp.obs.schema
        v2 = exp.ms["RNA"].var.schema
    assert o1 == o2
    assert v1 == v2