class_docstr: User-facing catalog API, accessible through `SparkSession.catalog`.
  
  This is a thin wrapper around its Scala implementation org.apache.spark.sql.catalog.Catalog.
  
  .. versionchanged:: 3.4.0
      Supports Spark Connect.
class_docstr_tok: ["User-facing","catalog","API",",","accessible","through","`","SparkSession.catalog","`",".","This","is","a","thin","wrapper","around","its","Scala","implementation","org.apache.spark.sql.catalog.Catalog",".","..","versionchanged",":",":","3.4.0","Supports","Spark","Connect","."]
docstr: An alias for :func:`spark.udf.register`.
  See :meth:`pyspark.sql.UDFRegistration.register`.
  
  .. versionadded:: 2.0.0
  
  .. deprecated:: 2.3.0
      Use :func:`spark.udf.register` instead.
  
  .. versionchanged:: 3.4.0
      Supports Spark Connect.
docstr_tok: ["An","alias","for",":","func",":","`","spark.udf.register","`",".","See",":","meth",":","`","pyspark.sql.UDFRegistration.register","`",".","..","versionadded",":",":","2.0.0","..","deprecated",":",":","2.3.0","Use",":","func",":","`","spark.udf.register","`","instead",".","..","versionchanged",":",":","3.4.0","Supports","Spark","Connect","."]
code: def registerFunction(
      self,
      name: str,
      f: Callable[..., Any],
      returnType: Optional["DataType"] = None,
  ) -> "UserDefinedFunctionLike":
      """An alias for :func:`spark.udf.register`.
      See :meth:`pyspark.sql.UDFRegistration.register`.
  
      .. versionadded:: 2.0.0
  
      .. deprecated:: 2.3.0
          Use :func:`spark.udf.register` instead.
  
      .. versionchanged:: 3.4.0
          Supports Spark Connect.
      """
      warnings.warn(
          "Deprecated in 2.3.0. Use spark.udf.register instead.",
          FutureWarning,
      )
      return self._sparkSession.udf.register(name, f, returnType)
  
imports: import sys
  import warnings
  from typing import Any, Callable, NamedTuple, List, Optional, TYPE_CHECKING
  from pyspark.errors import PySparkTypeError
  from pyspark.storagelevel import StorageLevel
  from pyspark.sql.dataframe import DataFrame
  from pyspark.sql.session import SparkSession
  from pyspark.sql.types import StructType
label_desc: Use image node_id 21 for calling the Catalog obj's underlying member method code with example usage: obj.registerFunction(name, f, returnType) and returns: self