code: def test_pcolormesh_shading(shading, input_size, expected):
      # Testing that the coordinates are all broadcast as expected with
      # the various shading options
      # The data shape is (3, 3) and we are changing the input shape
      # based upon that
      ax = plt.axes(projection=ccrs.PlateCarree())
  
      x = np.arange(input_size)
      y = np.arange(input_size)
      d = np.zeros((3, 3))
  
      coll = ax.pcolormesh(x, y, d, shading=shading)
      # We can use coll.get_coordinates() once MPL >= 3.5 is required
      # For now, we use the private variable for testing
      assert coll._coordinates.shape == (expected, expected, 2)
  
imports: import re
  import matplotlib.colors
  import matplotlib.pyplot
  import numpy
  import pytest
  import cartopy.crs
  from cartopy.mpl import _MPL_38
  from cartopy.tests.conftest import requires_scipy
label_desc: Use image node_id 29 for calling a global function with example usage: test_pcolormesh_shading(shading, input_size, expected) without return types