code: def test_take_empty(s, df):
      # ensure that index type is preserved in an empty take
      # https://github.com/geopandas/geopandas/issues/1190
      inds = np.array([], dtype="int64")
  
      # use non-default index
      df.index = pd.date_range("2012-01-01", periods=len(df))
  
      result = df.take(inds, axis=0)
      assert isinstance(result, GeoDataFrame)
      assert result.shape == (0, 3)
      assert isinstance(result.index, pd.DatetimeIndex)
  
      # the original bug report was an empty boolean mask
      for result in [
          df.loc[df["value1"] > 100],
          df[df["value1"] > 100],
      ]:
          assert isinstance(result, GeoDataFrame)
          assert result.shape == (0, 3)
          assert isinstance(result.index, pd.DatetimeIndex)
  
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 11 for calling a global function with example usage: test_take_empty(s, df) without return types