code: def test_expanddim_in_unstack():
      # https://github.com/geopandas/geopandas/pull/2296#issuecomment-1021966443
      s = GeoSeries.from_xy(
          [0, 1, 2],
          [0, 1, 3],
          index=pd.MultiIndex.from_tuples(
              [("A", "a"), ("A", "b"), ("B", "a")]
          ),
      )
      unstack = s.unstack()
      expected_geo_name = None
      assert_obj_no_active_geo_col(
          unstack, GeoDataFrame, geo_colname=expected_geo_name
      )
  
      # https://github.com/geopandas/geopandas/issues/2486
      s.name = "geometry"
      unstack = s.unstack()
      assert_obj_no_active_geo_col(
          unstack, GeoDataFrame, expected_geo_name
      )
  
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 18 for calling a global function with example usage: test_expanddim_in_unstack() without return types