code: def test_update_lim():
      # check that the standard data lim setting works
      ax = plt.axes(projection=ccrs.PlateCarree())
      ax.update_datalim([(-10, -10), (-5, -5)])
      assert_array_almost_equal(
          ax.dataLim.get_points(),
          np.array([[-10.0, -10.0], [-5.0, -5.0]]),
      )
  
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 4 for calling a global function with example usage: test_update_lim() without return types