code: def test_ambiguity_scope_boston_by_box():
      boston = (
          geodata.geocode_cities("boston").get_centroids().iloc[[0]]
      )
      buffer = 0.6
      boston_centroid = ShapelyPoint(
          boston.geometry.x, boston.geometry.y
      )
  
      r = geodata.geocode(level="city", names="Warwick").where(
          "Warwick",
          scope=shapely.geometry.box(
              boston_centroid.x - buffer,
              boston_centroid.y - buffer,
              boston_centroid.x + buffer,
              boston_centroid.y + buffer,
          ),
      )
  
      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 10 for calling a global function with example usage: test_ambiguity_scope_boston_by_box() without return types