code: def test_global_map(proj):
      if isinstance(proj, tuple):
          proj, kwargs = proj
      else:
          kwargs = {}
      proj = proj(**kwargs)
  
      fig = plt.figure(figsize=(2, 2))
      ax = fig.add_subplot(projection=proj)
      ax.set_global()
      ax.coastlines(resolution="110m")
  
      ax.plot(-0.08, 51.53, "o", transform=ccrs.PlateCarree())
      ax.plot(
          [-0.08, 132],
          [51.53, 43.17],
          color="red",
          transform=ccrs.PlateCarree(),
      )
      ax.plot(
          [-0.08, 132],
          [51.53, 43.17],
          color="blue",
          transform=ccrs.Geodetic(),
      )
  
      return fig
  
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 12 for calling a global function with example usage: test_global_map(proj) and returns: fig