code: def test_dissolve_emits_other_warnings(nybb_polydf):
      # we only do something special for pandas 1.5.x, but expect this
      # test to be true on any version
      def sum_and_warn(group):
          warnings.warn("foo")  # noqa: B028
          if PANDAS_GE_20:
              return group.sum(numeric_only=False)
          else:
              return group.sum()
  
      with pytest.warns(UserWarning, match="foo"):
          nybb_polydf.dissolve("manhattan_bronx", aggfunc=sum_and_warn)
  
imports: import warnings
  import numpy
  import pandas
  import geopandas
  from geopandas import GeoDataFrame, read_file
  from pandas.testing import assert_frame_equal
  import pytest
  from geopandas._compat import PANDAS_GE_15, PANDAS_GE_20
  from geopandas.testing import assert_geodataframe_equal, geom_almost_equals
label_desc: Use image node_id 11 for calling a global function with example usage: test_dissolve_emits_other_warnings(nybb_polydf) and returns: group, group