code: def test_ambiguity_closest_to_boston_by_name():
      r = geodata.geocode(level="city", names="Warwick").where(
          "Warwick", closest_to=geodata.geocode_cities("boston")
      )
  
      assert_row(r.get_geocodes(), id=WARWICK_ID, found_name="Warwick")
      assert_row(r.get_centroids(), lon=WARWICK_LON, lat=WARWICK_LAT)
  
imports: import pytest
  import shapely
  from shapely.geometry import Point
  import lets_plot.geo_data
  from lets_plot.geo_data import DF_COLUMN_FOUND_NAME
  from geo_data_test_util import run_intergration_tests, assert_row, assert_error, get_request_column_name, assert_request_and_found_name_are_equal
label_desc: Use image node_id 8 for calling a global function with example usage: test_ambiguity_closest_to_boston_by_name() without return types