code: def test_update_import_to_remote(
      tmp_dir, dvc, erepo_dir, local_remote
  ):
      erepo_dir.scm_gen({"foo": "foo"}, commit="add foo")
      stage = dvc.imp(os.fspath(erepo_dir), "foo")
      erepo_dir.scm_gen({"foo": "bar"}, commit="update foo")
      with pytest.raises(InvalidArgumentError):
          dvc.update(stage.path, to_remote=True)
  
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 12 for calling a global function with example usage: test_update_import_to_remote(tmp_dir, dvc, erepo_dir, local_remote) without return types