code: def test_reverse(locations, points):
      from geopy.geocoders import Photon
  
      for provider in ["photon", Photon]:
          with mock.patch(
              "geopy.geocoders.Photon.reverse", ReverseMock()
          ) as m:
              g = reverse_geocode(points, provider=provider, timeout=2)
              assert len(points) == m.call_count
  
          assert isinstance(g, GeoDataFrame)
  
          expected = GeoSeries(points, crs="EPSG:4326")
          assert_geoseries_equal(expected, g["geometry"])
          address = pd.Series(
              ["address" + str(x) for x in range(len(points))],
              name="address",
          )
          assert_series_equal(g["address"], address)
  
imports: import pandas
  from shapely.geometry import Point
  from geopandas import GeoDataFrame, GeoSeries
  from geopandas.tools import geocode, reverse_geocode
  from geopandas.tools.geocoding import _prepare_geocode_result
  from geopandas.tests.util import assert_geoseries_equal, mock
  from pandas.testing import assert_series_equal
  from geopandas.testing import assert_geodataframe_equal
  import pytest
label_desc: Use image node_id 9 for calling a global function with example usage: test_reverse(locations, points) without return types