code: def test_update_import_url(tmp_dir, dvc, workspace):
      workspace.gen("file", "file content")
  
      dst = tmp_dir / "imported_file"
      stage = dvc.imp_url("remote://workspace/file", os.fspath(dst))
  
      assert dst.is_file()
      assert dst.read_text() == "file content"
  
      # update data
      workspace.gen("file", "updated file content")
  
      assert dvc.status([stage.path]) == {}
      dvc.update([stage.path])
      assert dvc.status([stage.path]) == {}
  
      assert dst.is_file()
      assert dst.read_text() == "updated file content"
  
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 6 for calling a global function with example usage: test_update_import_url(tmp_dir, dvc, workspace) without return types