code: def _check_copy_file_specs_from(srcdir, destdir, specs, **kwargs):
      ds = Dataset(destdir).create()
      res = ds.copy_file(specs_from=specs, **kwargs)
      return ds, res
  
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 8 for calling a global function with example usage: _check_copy_file_specs_from(srcdir, destdir, specs) and returns: ds,  res