code: def test_nearest_none(self, geometry, expected, return_all):
      geoms = shapely.points(np.arange(10), np.arange(10))
      df = geopandas.GeoDataFrame({"geometry": geoms})
  
      res = df.sindex.nearest(geometry, return_all=return_all)
      assert_array_equal(res, expected)
  
imports: from math import sqrt
  import numpy
  import pandas
  import pytest
  import shapely
  from numpy.testing import assert_array_equal
  from shapely.geometry import GeometryCollection, LineString, MultiPolygon, Point, Polygon, box
  import geopandas
  from geopandas import GeoDataFrame, GeoSeries, read_file
  from geopandas import _compat
label_desc: Use image node_id 22 for calling the TestShapelyInterface obj's underlying member method code with example usage: obj.test_nearest_none(geometry, expected, return_all) without return types