code: def test_view_lim_default_global(tmp_path):
      ax = plt.axes(projection=ccrs.PlateCarree())
      # The view lim should be the default unit bbox until it is drawn.
      assert_array_almost_equal(
          ax.viewLim.frozen().get_points(), [[0, 0], [1, 1]]
      )
      plt.savefig(tmp_path / "view_lim_default_global.png")
      expected = np.array([[-180, -90], [180, 90]])
      assert_array_almost_equal(
          ax.viewLim.frozen().get_points(), expected
      )
  
file_path: cartopy/lib/cartopy/tests/mpl/test_set_extent.py
imports: import matplotlib.pyplot
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  import cartopy.crs
label_desc: Use image node_id 8 for calling a global function with example usage: test_view_lim_default_global(tmp_path) without return types