code: def test_resolver(tmp_dir, dvc):
      resolver = DataResolver(
          dvc, tmp_dir.fs_path, TEMPLATED_DVC_YAML_DATA
      )
      resolver.context.merge_update(Context(CONTEXT_DATA))
      assert resolver.resolve() == RESOLVED_DVC_YAML_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 1 for calling a global function with example usage: test_resolver(tmp_dir, dvc) without return types