code: def mocked_axes(extent, projection=ccrs.PlateCarree()):
      return mock.MagicMock(
          get_extent=mock.Mock(return_value=extent),
          projection=projection,
          spec=geoaxes.GeoAxes,
          transData=IdentityTransform(),
          patch=mock.sentinel.patch,
          figure=mock.sentinel.figure,
      )
  
file_path: cartopy/lib/cartopy/tests/mpl/test_feature_artist.py
imports: from unittest import mock
  from matplotlib.transforms import IdentityTransform
  import numpy
  import pytest
  import shapely.geometry
  import cartopy.crs
  from cartopy.feature import ShapelyFeature
  from cartopy.mpl import style
  from cartopy.mpl.feature_artist import FeatureArtist, _freeze, _GeomKey
  import cartopy.mpl.geoaxes
label_desc: Use image node_id 3 for calling a global function with example usage: mocked_axes(extent, projection) and returns: mock