code: def test_pipeline_params(tmp_dir, scm, dvc, run_copy):
      tmp_dir.gen(
          {
              "foo": "foo",
              "params.yaml": "foo: bar\nxyz: val\nabc: ignore",
          }
      )
      run_copy("foo", "bar", name="copy-foo-bar", params=["foo,xyz"])
      scm.add(["params.yaml", PROJECT_FILE])
      scm.commit("add stage")
  
      tmp_dir.scm_gen(
          "params.yaml", "foo: baz\nxyz: val\nabc: ignore", commit="baz"
      )
      tmp_dir.scm_gen(
          "params.yaml", "foo: qux\nxyz: val\nabc: ignore", commit="qux"
      )
  
      assert dvc.params.show(revs=["master"], deps_only=True) == {
          "master": {
              "data": {
                  "params.yaml": {"data": {"foo": "qux", "xyz": "val"}}
              }
          }
      }
      assert dvc.params.show(revs=["master"]) == {
          "master": {
              "data": {
                  "params.yaml": {
                      "data": {
                          "abc": "ignore",
                          "foo": "qux",
                          "xyz": "val",
                      }
                  }
              }
          }
      }
  
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 9 for calling a global function with example usage: test_pipeline_params(tmp_dir, scm, dvc, run_copy) without return types