code: def test_copy_fail_same_dataset(data):
      """A dataset can't be copied to itself."""
      path = str(data.join("RGB.byte.tif"))
      with pytest.raises(RasterioIOError):
          with rasterio.open(path) as src:
              rasterio.shutil.copy(src, path, **src.profile)
  
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 5 for calling a global function with example usage: test_copy_fail_same_dataset(data) without return types