code: def test_grid():
      # USGS Professional Paper 1395, pg 252, Table 42
      globe = ccrs.Globe(
          ellipse=None,
          semimajor_axis=0.5**0.5,
          semiminor_axis=0.5**0.5,
      )
      moll = ccrs.Mollweide(globe=globe)
      geodetic = moll.as_geodetic()
  
      other_args = {
          "a=0.7071067811865476",
          "b=0.7071067811865476",
          "lon_0=0",
      }
      check_proj_params("moll", moll, other_args)
  
      assert_allclose(np.array(moll.x_limits), [-2, 2])
      assert_allclose(np.array(moll.y_limits), [-1, 1])
  
      lats = np.arange(0, 91, 5)[::-1]
      lons = np.full_like(lats, 90)
      result = moll.transform_points(geodetic, lons, lats)
  
      expected_x = np.array(
          [
              0.00000,
              0.20684,
              0.32593,
              0.42316,
              0.50706,
              0.58111,
              0.64712,
              0.70617,
              0.75894,
              0.80591,
              0.84739,
              0.88362,
              0.91477,
              0.94096,
              0.96229,
              0.97882,
              0.99060,
              0.99765,
              1.00000,
          ]
      )
      assert_allclose(result[:, 0], expected_x, atol=1e-5)
  
      expected_y = np.array(
          [
              1.00000,
              0.97837,
              0.94539,
              0.90606,
              0.86191,
              0.81382,
              0.76239,
              0.70804,
              0.65116,
              0.59204,
              0.53097,
              0.46820,
              0.40397,
              0.33850,
              0.27201,
              0.20472,
              0.13681,
              0.06851,
              0.00000,
          ]
      )
      assert_allclose(result[:, 1], expected_y, atol=1e-5)
  
file_path: cartopy/lib/cartopy/tests/crs/test_mollweide.py
imports: import numpy
  from numpy.testing import assert_allclose
  import pytest
  import cartopy.crs
  from .helpers import check_proj_params
label_desc: Use image node_id 7 for calling a global function with example usage: test_grid() without return types