code: def test_cached_params(tmp_dir, dvc, scm, remote):
      tmp_dir.dvc_gen(
          {
              "dir": {"params.yaml": "foo: 3\nbar: 10"},
              "dir2": {"params.yaml": "foo: 42\nbar: 4"},
          }
      )
      dvc.push()
      dvc.cache.local.clear()
  
      (tmp_dir / "dvc.yaml").dump(
          {"params": ["dir/params.yaml", "dir2"]}
      )
  
      assert dvc.params.show() == {
          "": {
              "data": {
                  join("dir", "params.yaml"): {
                      "data": {"foo": 3, "bar": 10}
                  },
                  join("dir2", "params.yaml"): {
                      "data": {"foo": 42, "bar": 4}
                  },
              }
          }
      }
  
file_path: dvc/tests/func/params/test_show.py
imports: from os.path import join
  import pytest
  from dvc.repo import Repo
  from dvc.repo.stage import PROJECT_FILE
label_desc: Use image node_id 14 for calling a global function with example usage: test_cached_params(tmp_dir, dvc, scm, remote) without return types