code: def test_show_targets(tmp_dir, dvc):
      tmp_dir.gen("params.yaml", "foo: bar")
      dvc.run(
          cmd="echo params.yaml", params=["foo"], name="echo-params"
      )
      expected = {
          "": {"data": {"params.yaml": {"data": {"foo": "bar"}}}}
      }
      assert dvc.params.show(targets=["params.yaml"]) == expected
      assert (
          dvc.params.show(targets=(tmp_dir / "params.yaml").fs_path)
          == expected
      )
  
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 3 for calling a global function with example usage: test_show_targets(tmp_dir, dvc) without return types