code: def test_pcolormesh_nan_wrap():
      # Check that data with nan's as input still creates
      # the proper number of pcolor cells and those aren't
      # masked in the process.
      xs, ys = np.meshgrid([120, 160, 200], [-30, 0, 30])
      data = np.ones((2, 2)) * np.nan
  
      ax = plt.axes(projection=ccrs.PlateCarree())
      mesh = ax.pcolormesh(xs, ys, data)
      pcolor = getattr(mesh, "_wrapped_collection_fix")
      if not _MPL_38:
          assert len(pcolor.get_paths()) == 2
      else:
          assert not pcolor.get_paths()
  
      # Check that we can populate the pcolor with some data.
      mesh.set_array(np.ones((2, 2)))
      assert len(pcolor.get_paths()) == 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 25 for calling a global function with example usage: test_pcolormesh_nan_wrap() without return types