code: def test_download_url_archive(toppath=None, topurl=None, path=None):
      ds = Dataset(path).create()
      ds.download_url([topurl + "archive.tar.gz"], archive=True)
      ok_(ds.repo.file_has_content(opj("archive", "file1.txt")))
      assert_not_in(
          opj(ds.path, "archive.tar.gz"), ds.repo.format_commit("%B")
      )
      # we should yield an impossible from add archive content when there is
      # untracked content (gh-#6170)
      create_tree(ds.path, {"this": "dirty"})
      assert_in_results(
          ds.download_url(
              [topurl + "archive.tar.gz"],
              archive=True,
              on_failure="ignore",
          ),
          status="impossible",
          action="add-archive-content",
          message="clean dataset required. Use `datalad status` to inspect "
          "unsaved changes",
      )
  
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 5 for calling a global function with example usage: test_download_url_archive(toppath, topurl, path) without return types