code: def test_download_url_need_datalad_remote(path=None):
      # publicly available (requires anonymous s3 access, so still needs our special remote)
      url = "s3://dandiarchive/ros3test.hdf5"
      path = Path(path)
      ds_a = Dataset(path / "a").create()
      ds_a.download_url([url], path="foo")
      ds_b = clone(
          source=ds_a.path,
          path=str(path / "b"),
          result_xfm="datasets",
          return_type="item-or-list",
      )
      ds_b.repo.remove_remote(DEFAULT_REMOTE)
      ds_b.get("foo")
      ok_(ds_b.repo.file_has_content("foo"))
  
file_path: datalad/datalad/local/tests/test_download_url.py
imports: import os
  from os.path import join
  from datalad.api import Dataset, clone, download_url
  from datalad.tests.utils_pytest import DEFAULT_REMOTE, assert_cwd_unchanged, assert_false, assert_in, assert_in_results, assert_message, assert_not_in, assert_result_count, create_tree, eq_, ok_, ok_exists, serve_path_via_http, skip_if_no_network, slow, with_tempfile, with_tree
  from datalad.utils import Path, chpwd
label_desc: Use image node_id 8 for calling a global function with example usage: test_download_url_need_datalad_remote(path) without return types