code: def test_geoaxes_no_subslice():
      """Test that we do not trigger matplotlib's line subslice optimization."""
      # This behavior caused lines with > 1000 points and
      # sorted data to disappear
  
      fig, axes = plt.subplots(
          1, 2, subplot_kw={"projection": ccrs.Mercator()}
      )
      for ax, num_points in zip(axes, [1000, 1001]):
          lats = np.linspace(35, 37, num_points)
          lons = np.linspace(-117, -115, num_points)
          ax.plot(lons, lats, transform=ccrs.PlateCarree())
  
      return fig
  
imports: from unittest import mock
  import matplotlib.path
  import matplotlib.pyplot
  import numpy
  import pytest
  import cartopy.crs
  import cartopy.feature
  from cartopy.mpl.geoaxes import GeoAxes, GeoAxesSubplot, InterProjectionTransform
label_desc: Use image node_id 3 for calling a global function with example usage: test_geoaxes_no_subslice() and returns: fig