code: def test_update_import_url_to_remote(
      tmp_dir, dvc, workspace, local_remote
  ):
      workspace.gen("foo", "foo")
      stage = dvc.imp_url("remote://workspace/foo", to_remote=True)
  
      workspace.gen("foo", "bar")
      (updated,) = dvc.update(stage.path, to_remote=True)
  
      assert stage.deps[0].hash_info != updated.deps[0].hash_info
      assert stage.outs[0].hash_info != updated.outs[0].hash_info
  
      dvc.pull("foo")
      assert (tmp_dir / "foo").read_text() == "bar"
  
imports: import os
  import pytest
  from dvc.dependency import base
  from dvc.dvcfile import load_file
  from dvc.exceptions import InvalidArgumentError
  from dvc.testing.tmp_dir import make_subrepo
label_desc: Use image node_id 13 for calling a global function with example usage: test_update_import_url_to_remote(tmp_dir, dvc, workspace, local_remote) without return types