code: def test_pcolormesh_set_array_nowrap():
      # Roundtrip check that set_array works with the correct shaped arrays
      nx, ny = 36, 18
      xbnds = np.linspace(-60, 60, nx, endpoint=True)
      ybnds = np.linspace(-80, 80, ny, endpoint=True)
      xbnds, ybnds = np.meshgrid(xbnds, ybnds)
  
      rng = np.random.default_rng()
      data = rng.random((ny - 1, nx - 1))
  
      ax = plt.figure().add_subplot(projection=ccrs.PlateCarree())
      mesh = ax.pcolormesh(xbnds, ybnds, data)
      assert not hasattr(mesh, "_wrapped_collection_fix")
  
      expected = data
      if not _MPL_38:
          expected = expected.ravel()
      np.testing.assert_array_equal(mesh.get_array(), expected)
  
      # For backwards compatibility, check we can set a 1D array
      data = rng.random((nx - 1) * (ny - 1))
      mesh.set_array(data)
      np.testing.assert_array_equal(
          mesh.get_array(), data.reshape(ny - 1, nx - 1)
      )
  
      # Check that we can set a 2D array even if previous was flat
      data = rng.random((ny - 1, nx - 1))
      mesh.set_array(data)
      np.testing.assert_array_equal(mesh.get_array(), data)
  
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 20 for calling a global function with example usage: test_pcolormesh_set_array_nowrap() without return types