code: def test_alpha_2d_warp():
      # tests that both image and alpha arrays (if alpha is 2D) are warped
      plt_crs = ccrs.Geostationary(central_longitude=-155.0)
      fig = plt.figure(figsize=(5, 5))
      ax = fig.add_subplot(1, 1, 1, projection=plt_crs)
      latlon_crs = ccrs.PlateCarree()
      coords = [-162.0, -148.0, 17.5, 23.0]
      ax.set_extent(coords, crs=latlon_crs)
      fake_data = np.zeros([100, 100])
      fake_alphas = np.zeros(fake_data.shape)
      image = ax.imshow(
          fake_data,
          extent=coords,
          transform=latlon_crs,
          alpha=fake_alphas,
      )
      image_data = image.get_array()
      image_alpha = image.get_alpha()
  
      assert image_data.shape == image_alpha.shape
  
imports: import types
  import matplotlib.colors
  import matplotlib.pyplot
  import numpy
  from PIL import Image
  import pytest
  import shapely.geometry
  from cartopy import config
  import cartopy.crs
  import cartopy.io.img_tiles
  from cartopy.tests.conftest import _HAS_PYKDTREE_OR_SCIPY
  import cartopy.tests.test_img_tiles
label_desc: Use image node_id 12 for calling a global function with example usage: test_alpha_2d_warp() without return types