code: def test_sjoin_nearest_exclusive(self, max_distance, expected):
      geoms = shapely.points(np.arange(3), np.arange(3))
      geoms = np.append(geoms, [Point(1, 2)])
  
      df = geopandas.GeoDataFrame({"geometry": geoms})
      result = df.sjoin_nearest(
          df,
          max_distance=max_distance,
          distance_col="dist",
          exclusive=True,
      )
  
      assert_series_equal(
          result["index_right"].reset_index(drop=True),
          pd.Series(expected),
          check_names=False,
      )
  
      if max_distance:
          assert result["dist"].max() <= max_distance
  
imports: import math
  from typing import Sequence
  import numpy
  import pandas
  import shapely
  from shapely.geometry import Point, Polygon, GeometryCollection
  import geopandas
  import geopandas._compat
  from geopandas import GeoDataFrame, GeoSeries, read_file, sjoin, sjoin_nearest
  from geopandas.testing import assert_geodataframe_equal, assert_geoseries_equal
  from pandas.testing import assert_frame_equal, assert_series_equal
  import pytest
label_desc: Use image node_id 14 for calling the TestNearest obj's underlying member method code with example usage: obj.test_sjoin_nearest_exclusive(max_distance, expected) without return types