code: def test_copy_file_nourl(
      serv_path=None, orig_path=None, tst_path=None
  ):
      """Tests availability transfer to normal git-annex remote"""
      # prep source dataset that will have the file content
      srv_ds = Dataset(serv_path).create()
      (srv_ds.pathobj / "myfile.dat").write_text("I am content")
      (srv_ds.pathobj / "noavail.dat").write_text("null")
      srv_ds.save()
      srv_ds.drop("noavail.dat", reckless="kill")
      # make an empty superdataset, with the test dataset as a subdataset
      orig_ds = Dataset(orig_path).create()
      orig_ds.clone(source=serv_path, path="serv")
      assert_repo_status(orig_ds.path)
      # now copy the test file into the superdataset
      no_avail_file = orig_ds.pathobj / "serv" / "noavail.dat"
      assert_in_results(
          orig_ds.copy_file(no_avail_file, on_failure="ignore"),
          status="impossible",
          message="no known location of file content",
          path=str(no_avail_file),
      )
  
file_path: datalad/datalad/local/tests/test_copy_file.py
imports: from os.path import join
  from datalad.api import copy_file
  from datalad.consts import DATALAD_SPECIAL_REMOTE
  from datalad.distribution.dataset import Dataset
  from datalad.tests.utils_pytest import assert_in_results, assert_raises, assert_repo_status, assert_status, chpwd, eq_, nok_, ok_, ok_file_has_content, serve_path_via_http, slow, with_tempfile, with_tree
  from datalad.utils import Path
label_desc: Use image node_id 10 for calling a global function with example usage: test_copy_file_nourl(serv_path, orig_path, tst_path) without return types