code: def test_sjoin_nearest_left(
      self,
      geo_left,
      geo_right,
      expected_left: Sequence[int],
      expected_right: Sequence[int],
      distances: Sequence[float],
      how,
  ):
      left = geopandas.GeoDataFrame({"geometry": geo_left})
      right = geopandas.GeoDataFrame({"geometry": geo_right})
      expected_gdf = left.iloc[expected_left].copy()
      expected_gdf["index_right"] = expected_right
      # without distance col
      joined = sjoin_nearest(left, right, how=how)
      # inner / left join give a different row order
      check_like = how == "inner"
      assert_geodataframe_equal(
          expected_gdf, joined, check_like=check_like
      )
      # with distance col
      expected_gdf["distance_col"] = np.array(distances, dtype=float)
      joined = sjoin_nearest(
          left, right, how=how, distance_col="distance_col"
      )
      assert_geodataframe_equal(
          expected_gdf, joined, check_like=check_like
      )
  
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 11 for calling the TestNearest obj's underlying member method code with example usage: obj.test_sjoin_nearest_left(geo_left, geo_right, expected_left, expected_right, distances, how) without return types