code: def test_import_url_to_remote_absolute(
      tmp_dir, make_tmp_dir, dvc, scm, local_remote
  ):
      tmp_abs_dir = make_tmp_dir("abs")
      tmp_foo = tmp_abs_dir / "foo"
      tmp_foo.write_text("foo")
  
      stage = dvc.imp_url(str(tmp_foo), to_remote=True)
  
      foo = tmp_dir / "foo"
      assert stage.deps[0].fspath == str(tmp_foo)
      assert stage.outs[0].fspath == os.fspath(foo)
      assert foo.with_suffix(".dvc").exists()
      assert get_gitignore_content() == ["/foo"]
  
imports: import os
  import textwrap
  from uuid import uuid4
  import pytest
  from dvc.cli import main
  from dvc.dependency.base import Dependency, DependencyDoesNotExistError
  from dvc.dvcfile import load_file
  from dvc.exceptions import InvalidArgumentError
  from dvc.stage import Stage
  from dvc.testing.workspace_tests import TestImport
  from tests.utils import get_gitignore_content
label_desc: Use image node_id 11 for calling a global function with example usage: test_import_url_to_remote_absolute(tmp_dir, make_tmp_dir, dvc, scm, local_remote) without return types