code: def test_params_show_stage_addressing(tmp_dir, dvc):
      for subdir in ("subdir1", "subdir2"):
          subdir = tmp_dir / subdir
          subdir.mkdir()
          with subdir.chdir():
              subdir.gen("params.yaml", "foo: 1")
  
              dvc.run(
                  name="stage-0", cmd="echo stage-0", params=["foo"]
              )
  
      for s in ("subdir1", "subdir2"):
          dvcyaml = os.path.join(s, "dvc.yaml")
          assert api.params_show(stages=f"{dvcyaml}:stage-0") == {
              "foo": 1
          }
  
      with subdir.chdir():
          nested = subdir / "nested"
          nested.mkdir()
          with nested.chdir():
              dvcyaml = os.path.join("..", "dvc.yaml")
              assert api.params_show(stages=f"{dvcyaml}:stage-0") == {
                  "foo": 1
              }
  
imports: import json
  import os
  from textwrap import dedent
  from typing import Dict, List
  import pytest
  from dvc import api
label_desc: Use image node_id 7 for calling a global function with example usage: test_params_show_stage_addressing(tmp_dir, dvc) without return types