code: def test_named_arguments_negative(self):
      df = self.data
      weighted_mean = self.pandas_agg_weighted_mean_udf
  
      with self.tempView("v"):
          df.createOrReplaceTempView("v")
          self.spark.udf.register("weighted_mean", weighted_mean)
  
          with self.assertRaisesRegex(
              AnalysisException,
              "DUPLICATE_ROUTINE_PARAMETER_ASSIGNMENT.DOUBLE_NAMED_ARGUMENT_REFERENCE",
          ):
              self.spark.sql(
                  "SELECT id, weighted_mean(v => v, v => w) as wm FROM v GROUP BY id"
              ).show()
  
          with self.assertRaisesRegex(
              AnalysisException, "UNEXPECTED_POSITIONAL_ARGUMENT"
          ):
              self.spark.sql(
                  "SELECT id, weighted_mean(v => v, w) as wm FROM v GROUP BY id"
              ).show()
  
          with self.assertRaisesRegex(
              PythonException,
              r"weighted_mean\(\) got an unexpected keyword argument 'x'",
          ):
              self.spark.sql(
                  "SELECT id, weighted_mean(v => v, x => w) as wm FROM v GROUP BY id"
              ).show()
  
          with self.assertRaisesRegex(
              PythonException,
              r"weighted_mean\(\) got multiple values for argument 'v'",
          ):
              self.spark.sql(
                  "SELECT id, weighted_mean(v, v => w) as wm FROM v GROUP BY id"
              ).show()
  
imports: import unittest
  from typing import cast
  from pyspark.rdd import PythonEvalType
  from pyspark.sql import Row
  from pyspark.sql.functions import array, explode, col, lit, mean, sum, udf, pandas_udf, PandasUDFType
  from pyspark.sql.types import ArrayType, YearMonthIntervalType
  from pyspark.errors import AnalysisException, PySparkNotImplementedError, PythonException
  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 26 for calling the GroupedAggPandasUDFTestsMixin obj's underlying member method code with example usage: obj.test_named_arguments_negative() without return types