code: def test_limits_pcolor():
      xs, ys = np.meshgrid(
          np.linspace(250, 350, 15), np.linspace(-45, 45, 20)
      )
      data = (np.sin((xs * ys) * 1.0e7))[:-1, :-1]
  
      resulting_extent = np.array(
          [[250 - 180, -45.0], [-10.0 + 180, 45.0]]
      )
  
      ax = plt.axes(projection=ccrs.PlateCarree())
      ax.coastlines()
      ax.pcolor(xs, ys, data, transform=ccrs.PlateCarree(180))
      assert_array_almost_equal(ax.dataLim, resulting_extent)
  
      plt.figure()
      ax = plt.axes(projection=ccrs.PlateCarree())
      ax.coastlines()
      ax.pcolormesh(xs, ys, data, transform=ccrs.PlateCarree(180))
      assert_array_almost_equal(ax.dataLim, resulting_extent)
  
file_path: cartopy/lib/cartopy/tests/mpl/test_set_extent.py
imports: import matplotlib.pyplot
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  import cartopy.crs
label_desc: Use image node_id 6 for calling a global function with example usage: test_limits_pcolor() without return types