class_docstr: Static factory to handle UDFWrapper instantiation at runtime.
docstr: Instantiate a new UDFWrapper for PySpark functions.
  
  Args:
      fp_config (FeatureProcessorConfig): the configuration values for the feature_processor
          decorator.
docstr_tok: ["Instantiate","a","new","UDFWrapper","for","PySpark","functions",".","Args",":","fp_config","(","FeatureProcessorConfig",")",":","the","configuration","values","for","the","feature_processor","decorator","."]
code: def _get_spark_udf_wrapper(
      fp_config: FeatureProcessorConfig,
  ) -> UDFWrapper[DataFrame]:
      """Instantiate a new UDFWrapper for PySpark functions.
  
      Args:
          fp_config (FeatureProcessorConfig): the configuration values for the feature_processor
              decorator.
      """
      spark_session_factory = (
          UDFWrapperFactory._get_spark_session_factory(
              fp_config.spark_config
          )
      )
      feature_store_manager_factory = (
          UDFWrapperFactory._get_feature_store_manager_factory()
      )
  
      output_manager = UDFWrapperFactory._get_spark_output_receiver(
          feature_store_manager_factory
      )
      arg_provider = UDFWrapperFactory._get_spark_arg_provider(
          spark_session_factory
      )
  
      return UDFWrapper[DataFrame](arg_provider, output_manager)
  
imports: from __future__ import absolute_import
  from typing import Dict
  from pyspark.sql import DataFrame
  from sagemaker.feature_store.feature_processor._enums import FeatureProcessorMode
  from sagemaker.feature_store.feature_processor._env import EnvironmentHelper
  from sagemaker.feature_store.feature_processor._feature_processor_config import FeatureProcessorConfig
  from sagemaker.feature_store.feature_processor._input_loader import SparkDataFrameInputLoader
  from sagemaker.feature_store.feature_processor._params_loader import ParamsLoader, SystemParamsLoader
  from sagemaker.feature_store.feature_processor._spark_factory import FeatureStoreManagerFactory, SparkSessionFactory
  from sagemaker.feature_store.feature_processor._udf_arg_provider import SparkArgProvider
  from sagemaker.feature_store.feature_processor._udf_output_receiver import SparkOutputReceiver
  from sagemaker.feature_store.feature_processor._udf_wrapper import UDFWrapper
  from sagemaker.feature_store.feature_processor._validation import FeatureProcessorArgValidator, InputValidator, SparkUDFSignatureValidator, InputOffsetValidator, BaseDataSourceValidator, ValidatorChain
label_desc: Use image node_id 2 for calling the UDFWrapperFactory obj's underlying member method code with example usage: obj._get_spark_udf_wrapper(fp_config) and returns: UDFWrapper