code: def test_vars_already_loaded_message(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)
  
imports: from copy import deepcopy
  import pytest
  from dvc.parsing import DEFAULT_PARAMS_FILE, DataResolver, ResolveError
  from dvc.parsing.context import Context
  from dvc.utils.serialize import dumps_yaml
  from .None import CONTEXT_DATA, RESOLVED_DVC_YAML_DATA, TEMPLATED_DVC_YAML_DATA
label_desc: Use image node_id 14 for calling a global function with example usage: test_vars_already_loaded_message(tmp_dir, dvc, local, vars_) without return types