code: def registerJavaFunction(self, name, javaClassName, returnType=None):
          
          warnings.warn(
              "Deprecated in 2.3.0. Use spark.udf.registerJavaFunction instead.",
              DeprecationWarning)
          return self.sparkSession.udf.registerJavaFunction(name, javaClassName, returnType)
docs: An alias for :func:`spark.udf.registerJavaFunction`.
          See :meth:`pyspark.sql.UDFRegistration.registerJavaFunction`.
  
          .. note:: Deprecated in 2.3.0. Use :func:`spark.udf.registerJavaFunction` instead.