code: def test_load_vars_with_relpath(tmp_dir, scm, dvc):
      tmp_dir.scm_gen(
          DEFAULT_PARAMS_FILE, dumps_yaml(DATA), commit="add params"
      )
  
      revisions = ["HEAD", "workspace"]
      for rev in dvc.brancher(revs=["HEAD"]):
          assert rev == revisions.pop()
          d = {
              "vars": [f"../{DEFAULT_PARAMS_FILE}"],
          }
          resolver = DataResolver(dvc, "subdir", d)
          assert resolver.context == deepcopy(DATA)
  
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 8 for calling a global function with example usage: test_load_vars_with_relpath(tmp_dir, scm, dvc) without return types