code: def test_diff_top_level_params(
      tmp_dir, dvc, scm, dvcfile, params_file
  ):
      directory = (tmp_dir / dvcfile).parent
      directory.mkdir(exist_ok=True)
      (tmp_dir / dvcfile).dump({"params": [params_file]})
  
      params_file = directory / params_file
      params_file.dump({"foo": 3})
      scm.add_commit(
          [params_file, tmp_dir / dvcfile], message="add params"
      )
  
      params_file.dump({"foo": 5})
      assert dvc.params.diff() == {
          "diff": {
              relpath(directory / params_file): {
                  "foo": {"diff": 2, "new": 5, "old": 3}
              }
          }
      }
  
file_path: dvc/tests/func/params/test_diff.py
imports: from os.path import join
  import pytest
  from dvc.utils import relpath
label_desc: Use image node_id 15 for calling a global function with example usage: test_diff_top_level_params(tmp_dir, dvc, scm, dvcfile, params_file) without return types