code: def test_show_branch(tmp_dir, scm, dvc):
      tmp_dir.gen("params.yaml", "foo: bar")
      dvc.run(
          cmd="echo params.yaml", params=["foo"], name="echo-params"
      )
      scm.add(["params.yaml", "Dvcfile"])
      scm.commit("init")
  
      with tmp_dir.branch("branch", new=True):
          tmp_dir.scm_gen("params.yaml", "foo: baz", commit="branch")
  
      assert dvc.params.show(revs=["branch"]) == {
          "branch": {"data": {"params.yaml": {"data": {"foo": "baz"}}}},
          "workspace": {
              "data": {"params.yaml": {"data": {"foo": "bar"}}}
          },
      }
  
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 8 for calling a global function with example usage: test_show_branch(tmp_dir, scm, dvc) without return types