code: def test_sphere_transform():
      # USGS Professional Paper 1395, pp 319 - 320
      globe = ccrs.Globe(
          semimajor_axis=1.0, semiminor_axis=1.0, ellipse=None
      )
      gnom = ccrs.Gnomonic(
          central_latitude=40.0, central_longitude=-100.0, globe=globe
      )
      geodetic = gnom.as_geodetic()
  
      other_args = {"a=1.0", "b=1.0", "lon_0=-100.0", "lat_0=40.0"}
      check_proj_params("gnom", gnom, other_args)
  
      assert_almost_equal(np.array(gnom.x_limits), [-5e7, 5e7])
      assert_almost_equal(np.array(gnom.y_limits), [-5e7, 5e7])
  
      result = gnom.transform_point(-110.0, 30.0, geodetic)
      assert_almost_equal(result, np.array([-0.1542826, -0.1694739]))
  
      inverse_result = geodetic.transform_point(
          result[0], result[1], gnom
      )
      assert_almost_equal(inverse_result, [-110.0, 30.0])
  
file_path: cartopy/lib/cartopy/tests/crs/test_gnomonic.py
imports: import numpy
  from numpy.testing import assert_almost_equal
  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_sphere_transform() without return types