code: def check_invalid_args(self):
      df = self.data
      w = self.unbounded_window
  
      with self.assertRaisesRegex(
          AnalysisException, ".*not supported within a window function"
      ):
          foo_udf = pandas_udf(
              lambda x: x, "v double", PandasUDFType.GROUPED_MAP
          )
          df.withColumn("v2", foo_udf(df["v"]).over(w))
  
imports: import unittest
  from typing import cast
  from pyspark.errors import AnalysisException, PythonException
  from pyspark.sql.functions import array, explode, col, lit, mean, min, max, rank, udf, pandas_udf, PandasUDFType
  from pyspark.sql.window import Window
  from pyspark.testing.sqlutils import ReusedSQLTestCase, have_pandas, have_pyarrow, pandas_requirement_message, pyarrow_requirement_message
  from pyspark.testing.utils import QuietTest, assertDataFrameEqual
label_desc: Use image node_id 27 for calling the WindowPandasUDFTestsMixin obj's underlying member method code with example usage: obj.check_invalid_args() without return types