code: def test_copyfiles(data, tmpdir):
      """``rasterio.shutil.copyfiles()``"""
  
      # Use the 'data' fixture to prevent the created '.aux.xml' file from
      # triggering 'GDALPAMDataset()' interactions in other tests.
      infile = str(data.join("RGB.byte.tif"))
      outfile = str(tmpdir.join("test_copyfiles_outfile.tif"))
      aux = infile + ".aux.xml"
      with open(aux, "w"):
          pass
  
      ret = rasterio.shutil.copyfiles(infile, outfile)
      assert ret is None
  
      with rasterio.open(infile) as expected, rasterio.open(
          outfile
      ) as actual:
          assert len(expected.files) == len(actual.files)
          assert all(map(os.path.exists, actual.files))
  
file_path: rasterio/tests/test_shutil.py
imports: import os
  import numpy
  import pytest
  import rasterio
  import rasterio.shutil
  from rasterio._err import CPLE_NotSupportedError
  from rasterio.errors import DriverRegistrationError, RasterioIOError
label_desc: Use image node_id 10 for calling a global function with example usage: test_copyfiles(data, tmpdir) without return types