code: def test_global_hexbin_wrap():
      ax = plt.axes(projection=ccrs.PlateCarree())
      ax.coastlines(zorder=2)
      x, y = np.meshgrid(np.arange(-179, 181), np.arange(-90, 91))
      data = np.sin(np.sqrt(x**2 + y**2))
      ax.hexbin(
          x.flatten(),
          y.flatten(),
          C=data.flatten(),
          gridsize=20,
          zorder=1,
      )
      return ax.figure
  
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 9 for calling a global function with example usage: test_global_hexbin_wrap() and returns: ax