code: def test_params_diff(dvc, mocker):
      cli_args = parse_args(
          [
              "params",
              "diff",
              "HEAD~10",
              "HEAD~1",
              "--targets",
              "target",
              "--all",
              "--json",
              "--md",
              "--no-path",
              "--deps",
          ]
      )
      assert cli_args.func == CmdParamsDiff
  
      cmd = cli_args.func(cli_args)
      params_diff = mocker.patch(
          "dvc.repo.params.diff.diff", return_value={}
      )
      show_diff_mock = mocker.patch("dvc.compare.show_diff")
  
      assert cmd.run() == 0
  
      params_diff.assert_called_once_with(
          cmd.repo,
          a_rev="HEAD~10",
          b_rev="HEAD~1",
          targets=["target"],
          all=True,
          deps_only=True,
      )
      show_diff_mock.assert_not_called()
  
imports: from dvc.cli import parse_args
  from dvc.commands.params import CmdParamsDiff
label_desc: Use image node_id 1 for calling a global function with example usage: test_params_diff(dvc, mocker) without return types