code: def test_expanddim_in_apply():
      # https://github.com/geopandas/geopandas/pull/2296#issuecomment-1021966443
      s = GeoSeries.from_xy([0, 1], [0, 1])
      result = s.apply(lambda x: pd.Series([x.x, x.y]))
      assert_object(result, pd.DataFrame)
  
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 16 for calling a global function with example usage: test_expanddim_in_apply() without return types