code: def test_resolve_local_tries_to_load_globally_used_files(
      tmp_dir, dvc
  ):
      iterable = {"bar": "bar", "foo": "foo"}
      (tmp_dir / "params.json").dump(iterable)
  
      d = {
          "vars": ["params.json"],
          "stages": {
              "build": {
                  "cmd": "command --value ${bar}",
                  "params": [{"params.json": ["foo"]}],
                  "vars": ["params.json"],
              }
          },
      }
      resolver = DataResolver(dvc, tmp_dir.fs_path, d)
      assert_stage_equal(
          resolver.resolve(),
          {
              "stages": {
                  "build": {
                      "cmd": "command --value bar",
                      "params": [{"params.json": ["foo"]}],
                  }
              }
          },
      )
      assert resolver.tracked_vars == {
          "build": {"params.json": {"bar": "bar"}}
      }
  
file_path: dvc/tests/func/parsing/test_interpolated_entry.py
imports: import os
  from copy import deepcopy
  import pytest
  from dvc.dependency import _merge_params
  from dvc.parsing import DEFAULT_PARAMS_FILE, DataResolver
  from dvc.parsing.context import recurse_not_a_node
  from dvc.parsing.interpolate import escape_str
  from .None import CONTEXT_DATA, RESOLVED_DVC_YAML_DATA, TEMPLATED_DVC_YAML_DATA, USED_VARS
label_desc: Use image node_id 7 for calling a global function with example usage: test_resolve_local_tries_to_load_globally_used_files(tmp_dir, dvc) without return types