code: def test_frame_apply_negative(self):
      with self.assertRaisesRegex(
          ValueError,
          "The output of the function.* pyspark.sql.DataFrame.*int",
      ):
          ps.range(10).spark.apply(lambda scol: 1)
  
file_path: spark/python/pyspark/pandas/tests/test_frame_spark.py
imports: import os
  import pandas
  from pyspark import pandas
  from pyspark.testing.pandasutils import PandasOnSparkTestCase, TestUtils
  from pyspark.testing.sqlutils import SQLTestUtils
label_desc: Use image node_id 1 for calling the SparkFrameMethodsTestsMixin obj's underlying member method code with example usage: obj.test_frame_apply_negative() without return types