code: def test_checkout(tmp_dir, dvc, mocker):
      cli_args = parse_args(
          ["checkout", "foo.dvc", "bar.dvc", "--relink", "--with-deps"]
      )
      assert cli_args.func == CmdCheckout
  
      cmd = cli_args.func(cli_args)
      m = mocker.patch("dvc.repo.Repo.checkout")
  
      assert cmd.run() == 0
      m.assert_called_once_with(
          targets=["foo.dvc", "bar.dvc"],
          force=False,
          recursive=False,
          relink=True,
          with_deps=True,
          allow_missing=False,
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_checkout(tmp_dir, dvc, mocker) without return types