def METHOD_NAME(experiment) -> None:
    ds = DataSetInMem._create_new_run(name="foo")
    pss: list[ParamSpecBase] = []
    for n in range(3):
        pss.append(ParamSpecBase(f"ps{n}", paramtype="numeric"))
    idps = InterDependencies_(dependencies={pss[0]: (pss[1], pss[2])})
    ds.prepare(interdeps=idps, snapshot={})
    with pytest.raises(
        RuntimeError, match="Cannot prepare a dataset that is not pristine."
    ):
        ds.prepare(interdeps=idps, snapshot={})