code: def test_prepare_result():
      # Calls _prepare_result with sample results from the geocoder call
      # loop
      p0 = Point(12.3, -45.6)  # Treat these as lat/lon
      p1 = Point(-23.4, 56.7)
      d = {
          "a": ("address0", p0.coords[0]),
          "b": ("address1", p1.coords[0]),
      }
  
      df = _prepare_geocode_result(d)
      assert type(df) is GeoDataFrame
      assert df.crs == "EPSG:4326"
      assert len(df) == 2
      assert "address" in df
  
      coords = df.loc["a"]["geometry"].coords[0]
      test = p0.coords[0]
      # Output from the df should be lon/lat
      assert coords[0] == pytest.approx(test[1])
      assert coords[1] == pytest.approx(test[0])
  
      coords = df.loc["b"]["geometry"].coords[0]
      test = p1.coords[0]
      assert coords[0] == pytest.approx(test[1])
      assert coords[1] == pytest.approx(test[0])
  
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 3 for calling a global function with example usage: test_prepare_result() without return types