code: def test_constructor_sliced_in_pandas_methods(df2):
      # constructor sliced is used in many places, checking a sample of non
      # geometry cases are sensible
      assert type(df2.count()) == pd.Series
      # drop the secondary geometry columns as not hashable
      hashable_test_df = df2.drop(columns=["geometry2", "geometry3"])
      assert type(hashable_test_df.duplicated()) == pd.Series
      assert type(df2.quantile(numeric_only=True)) == pd.Series
      assert type(df2.memory_usage()) == 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 21 for calling a global function with example usage: test_constructor_sliced_in_pandas_methods(df2) without return types