code: def test_max_min_non_numeric():
      # #2700
      aa = DataFrame(
          {
              "nn": [11, 11, 22, 22],
              "ii": [1, 2, 3, 4],
              "ss": 4 * ["mama"],
          }
      )
  
      result = aa.groupby("nn").max()
      assert "ss" in result
  
      result = aa.groupby("nn").max(numeric_only=False)
      assert "ss" in result
  
      result = aa.groupby("nn").min()
      assert "ss" in result
  
      result = aa.groupby("nn").min(numeric_only=False)
      assert "ss" in result
  
imports: import builtins
  import datetime
  from string import ascii_lowercase
  import numpy
  import pytest
  from pandas._libs.tslibs import iNaT
  import pandas
  from pandas import DataFrame, MultiIndex, Series, Timestamp, date_range, isna
  import pandas._testing
  from pandas.util import _test_decorators
label_desc: Use image node_id 18 for calling a global function with example usage: test_max_min_non_numeric() without return types