code: def test_fetch_img_reprojected(self):
      source = ogc.WMTSRasterSource(self.URI, self.layer_name)
      extent = [-20, -1, 48, 50]
      # NB single result in this case.
      (located_image,) = source.fetch_raster(
          ccrs.NorthPolarStereo(), extent, (30, 30)
      )
  
      # Check image array is as expected (more or less).
      img = np.array(located_image.image)
      assert img.shape == (42, 42, 4)
      # When reprojected, extent is exactly what you asked for.
      assert located_image.extent == extent
  
imports: from unittest import mock
  from xml.etree.ElementTree import ParseError
  import numpy
  import pytest
  import cartopy.crs
  from cartopy.tests.conftest import _HAS_PYKDTREE_OR_SCIPY
  import cartopy.io.ogc_clients
  from cartopy.io.ogc_clients import _OWSLIB_AVAILABLE
label_desc: Use image node_id 7 for calling the TestWMTSRasterSource obj's underlying member method code with example usage: obj.test_fetch_img_reprojected() without return types