code: def test_apply_negative(self):
      def func(_) -> ps.Series[int]:
          return pd.Series([1])
  
      with self.assertRaisesRegex(
          TypeError, "Series as a return type hint at frame groupby"
      ):
          ps.range(10).groupby("id").apply(func)
  
imports: import unittest
  import numpy
  import pandas
  from pyspark import pandas
  from pyspark.pandas.config import option_context
  from pyspark.testing.pandasutils import ComparisonTestBase
  from pyspark.testing.sqlutils import SQLTestUtils
label_desc: Use image node_id 4 for calling the GroupbyApplyFuncMixin obj's underlying member method code with example usage: obj.test_apply_negative() and returns: pd