code: def test_update_to_remote(dvc, mocker):
      cli_args = parse_args(
          [
              "update",
              "target1",
              "target2",
              "--to-remote",
              "-j",
              "5",
              "-r",
              "remote",
              "--recursive",
          ]
      )
      assert cli_args.func == CmdUpdate
      cmd = cli_args.func(cli_args)
      m = mocker.patch("dvc.repo.Repo.update")
  
      assert cmd.run() == 0
  
      m.assert_called_once_with(
          targets=["target1", "target2"],
          rev=None,
          recursive=True,
          to_remote=True,
          no_download=False,
          remote="remote",
          jobs=5,
      )
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_update_to_remote(dvc, mocker) without return types