code: def test_update_import_url_no_download(
      tmp_dir, dvc, workspace, outs_exist, mocker
  ):
      workspace.gen("file", "file content")
  
      dst = tmp_dir / "imported_file"
      stage = dvc.imp_url(
          "remote://workspace/file",
          os.fspath(dst),
          no_download=not outs_exist,
      )
  
      assert dst.exists() is outs_exist
      hash_info = stage.deps[0].hash_info
      assert hash_info.value == "d10b4c3ff123b26dc068d43a8bef2d23"
  
      workspace.gen("file", "updated file content")
  
      updated_stage = dvc.update([stage.path], no_download=True)[0]
      assert not dst.exists()
  
      updated_hash_info = updated_stage.deps[0].hash_info
      assert updated_hash_info != hash_info
      assert (
          updated_hash_info.value == "6ffba511ce3aa40b8231d1b1f8c5fba5"
      )
  
      # output must have no information since no_download=True
      out = updated_stage.outs[0]
      assert out.hash_info.value is None
      assert out.hash_info.name is None
      assert out.meta.size is None
  
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 7 for calling a global function with example usage: test_update_import_url_no_download(tmp_dir, dvc, workspace, outs_exist, mocker) without return types