code: def test_memfile_copyfiles(path_rgb_msk_byte_tif):
      """Multiple files can be copied to a MemoryFile using copyfiles"""
      with rasterio.open(path_rgb_msk_byte_tif) as src:
          src_basename = os.path.basename(src.name)
          with MemoryFile(
              dirname="foo", filename=src_basename
          ) as memfile:
              copyfiles(src.name, memfile.name)
              with memfile.open() as rgb2:
                  assert sorted(rgb2.files) == sorted(
                      [
                          "/vsimem/foo/{}".format(src_basename),
                          "/vsimem/foo/{}.msk".format(src_basename),
                      ]
                  )
  
imports: from io import BytesIO
  import os.path
  from pathlib import Path
  from affine import Affine
  import numpy
  import pytest
  import rasterio
  from rasterio.io import MemoryFile, ZipMemoryFile
  from rasterio.enums import MaskFlags
  from rasterio.shutil import copyfiles
label_desc: Use image node_id 31 for calling a global function with example usage: test_memfile_copyfiles(path_rgb_msk_byte_tif) without return types