code: def test_copyfiles(_temp_analyze_files, _temp_analyze_files_prime):
      orig_img1, orig_hdr1 = _temp_analyze_files
      orig_img2, orig_hdr2 = _temp_analyze_files_prime
      pth, fname = os.path.split(orig_img1)
      new_img1 = os.path.join(pth, "newfile.img")
      new_hdr1 = os.path.join(pth, "newfile.hdr")
      pth, fname = os.path.split(orig_img2)
      new_img2 = os.path.join(pth, "secondfile.img")
      new_hdr2 = os.path.join(pth, "secondfile.hdr")
      copyfiles([orig_img1, orig_img2], [new_img1, new_img2])
      assert os.path.exists(new_img1)
      assert os.path.exists(new_hdr1)
      assert os.path.exists(new_img2)
      assert os.path.exists(new_hdr2)
  
imports: import os
  import time
  from pathlib import Path
  from unittest import mock, SkipTest
  import pytest
  from ...testing import TempFATFS
  from ...utils.filemanip import save_json, load_json, fname_presuffix, fnames_presuffix, hash_rename, check_forhash, _parse_mount_table, _cifs_table, on_cifs, copyfile, copyfiles, ensure_list, simplify_list, check_depends, split_filename, get_related_files, indirectory, loadpkl, loadcrash, savepkl, path_resolve, write_rst_list, emptydirs
label_desc: Use image node_id 11 for calling a global function with example usage: test_copyfiles(_temp_analyze_files, _temp_analyze_files_prime) without return types