def METHOD_NAME(tmp_dir, dvc, local, vars_):
    d = {"stages": {"build": {"cmd": "echo ${sub1} ${sub2}"}}}
    (tmp_dir / "test_params.yaml").dump({"sub1": "sub1", "sub2": "sub2"})
    if not local:
        d["vars"] = vars_
    else:
        d["stages"]["build"]["vars"] = vars_
    with pytest.raises(ResolveError) as exc_info:  # noqa: PT012
        resolver = DataResolver(dvc, tmp_dir.fs_path, d)
        resolver.resolve()
    assert "partially" in str(exc_info.value)