code: def test_apply(self):
      psser = self.psser
  
      def udf(col) -> ps.Series[int]:
          return col + 10
  
      with self.assertRaisesRegex(
          ValueError,
          r"Expected the return type of this function to be of scalar type, "
          r"but found type SeriesType\[LongType\(\)\]",
      ):
          psser.apply(udf)
  
imports: import unittest
  from collections import defaultdict
  import inspect
  from datetime import datetime, timedelta
  import numpy
  import pandas
  from pyspark.ml.linalg import SparseVector
  from pyspark import pandas
  from pyspark.testing.pandasutils import PandasOnSparkTestCase, SPARK_CONF_ARROW_ENABLED
  from pyspark.testing.sqlutils import SQLTestUtils
  from pyspark.pandas.exceptions import PandasNotImplementedError
  from pyspark.pandas.missing.series import MissingPandasLikeSeries
  from pyspark.pandas.typedef.typehints import extension_object_dtypes_available
label_desc: Use image node_id 41 for calling the SeriesTestsMixin obj's underlying member method code with example usage: obj.test_apply() and returns: unknown