code: def test_params_diff_from_cli(dvc, mocker):
      cli_args = parse_args(["params", "diff"])
      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",
          b_rev="workspace",
          all=False,
          targets=None,
          deps_only=False,
      )
      show_diff_mock.assert_called_once_with(
          {},
          title="Param",
          markdown=False,
          no_path=False,
          show_changes=False,
          a_rev="HEAD",
          b_rev="workspace",
      )
  
imports: from dvc.cli import parse_args
  from dvc.commands.params import CmdParamsDiff
label_desc: Use image node_id 2 for calling a global function with example usage: test_params_diff_from_cli(dvc, mocker) without return types