code: def test_iloc(df):
      geo_name = df.geometry.name
      assert_object(df.iloc[:, 0:2], pd.DataFrame)
      assert_object(df.iloc[:, 2:4], GeoDataFrame, geo_name)
      assert_object(df.iloc[:, [2]], GeoDataFrame, geo_name)
      assert_obj_no_active_geo_col(
          df.iloc[:, [3, 0]], GeoDataFrame, geo_name
      )
      assert_obj_no_active_geo_col(
          df.iloc[:, [3]], GeoDataFrame, geo_name
      )
      assert_object(df.iloc[:, [0]], pd.DataFrame)
      # Series
      assert_object(df.iloc[:, 2], GeoSeries, geo_name)
      assert_object(df.iloc[:, 3], GeoSeries, "geometry2", crs=crs_osgb)
      assert_object(df.iloc[:, 0], pd.Series)
  
imports: import pandas
  import pyproj
  import pytest
  from shapely.geometry import Point
  import numpy
  from geopandas import GeoDataFrame, GeoSeries
  from geopandas.testing import assert_geodataframe_equal
label_desc: Use image node_id 9 for calling a global function with example usage: test_iloc(df) without return types