code: def test_reindex(s, df):
      # GeoSeries reindex
      res = s.reindex([1, 2, 3])
      exp = GeoSeries([Point(1, 1), Point(2, 2), None], index=[1, 2, 3])
      assert_geoseries_equal(res, exp)
  
      # GeoDataFrame reindex index
      res = df.reindex(index=[1, 2, 3])
      assert_geoseries_equal(res.geometry, exp)
  
      # GeoDataFrame reindex columns
      res = df.reindex(columns=["value1", "geometry"])
      assert isinstance(res, GeoDataFrame)
      assert isinstance(res.geometry, GeoSeries)
      assert_frame_equal(res, df[["value1", "geometry"]])
  
      res = df.reindex(columns=["value1", "value2"])
      assert type(res) == pd.DataFrame
      assert_frame_equal(res, df[["value1", "value2"]])
  
imports: import os
  from packaging.version import Version
  import warnings
  import numpy
  from numpy.testing import assert_array_equal
  import pandas
  import shapely
  from shapely.geometry import Point, GeometryCollection, LineString, LinearRing
  import geopandas
  from geopandas import GeoDataFrame, GeoSeries
  import geopandas._compat
  from geopandas.array import from_shapely
  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 9 for calling a global function with example usage: test_reindex(s, df) without return types