code: def test_wmts():
      ax = plt.axes(projection=ccrs.PlateCarree())
      url = "https://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"
      # Use a layer which doesn't change over time.
      ax.add_wmts(url, "MODIS_Water_Mask")
      return ax.figure
  
file_path: cartopy/lib/cartopy/tests/mpl/test_web_services.py
imports: import matplotlib.pyplot
  import pytest
  from cartopy.tests.conftest import _HAS_PYKDTREE_OR_SCIPY
  import cartopy.crs
  from cartopy.io.ogc_clients import _OWSLIB_AVAILABLE
label_desc: Use image node_id 1 for calling a global function with example usage: test_wmts() and returns: ax