class_docstr: Class that wraps a user provided function.
class_docstr_tok: ["Class","that","wraps","a","user","provided","function","."]
docstr: Generate the arguments for the user defined function, provided by the wrapper function.
  
  Args:
      udf (Callable[..., T]): The feature_processor wrapped user function.
      fp_config (FeatureProcessorConfig): The configuration for the feature_processor.
  
  Returns:
      Tuple[Tuple[Any, ...], Dict[str, Any]]: A tuple positional arguments and keyword
          arguments for the UDF.
docstr_tok: ["Generate","the","arguments","for","the","user","defined","function",",","provided","by","the","wrapper","function",".","Args",":","udf","(","Callable","[","...",",","T","]",")",":","The","feature_processor","wrapped","user","function",".","fp_config","(","FeatureProcessorConfig",")",":","The","configuration","for","the","feature_processor",".","Returns",":","Tuple","[","Tuple","[","Any",",","...","]",",","Dict","[","str",",","Any","]","]",":","A","tuple","positional","arguments","and","keyword","arguments","for","the","UDF","."]
code: def _prepare_udf_args(
      self,
      udf: Callable[..., T],
      fp_config: FeatureProcessorConfig,
  ) -> Tuple[Tuple[Any, ...], Dict[str, Any]]:
      """Generate the arguments for the user defined function, provided by the wrapper function.
  
      Args:
          udf (Callable[..., T]): The feature_processor wrapped user function.
          fp_config (FeatureProcessorConfig): The configuration for the feature_processor.
  
      Returns:
          Tuple[Tuple[Any, ...], Dict[str, Any]]: A tuple positional arguments and keyword
              arguments for the UDF.
      """
      args = ()
      kwargs = {
          **self.udf_arg_provider.provide_input_args(udf, fp_config),
          **self.udf_arg_provider.provide_params_arg(udf, fp_config),
          **self.udf_arg_provider.provide_additional_kwargs(udf),
      }
  
      return (args, kwargs)
  
file_path: sagemaker-python-sdk/src/sagemaker/feature_store/feature_processor/_udf_wrapper.py
imports: from __future__ import absolute_import
  import functools
  from typing import Any, Callable, Dict, Generic, Tuple, TypeVar
  import attr
  from sagemaker.feature_store.feature_processor._feature_processor_config import FeatureProcessorConfig
  from sagemaker.feature_store.feature_processor._udf_arg_provider import UDFArgProvider
  from sagemaker.feature_store.feature_processor._udf_output_receiver import UDFOutputReceiver
label_desc: Use image node_id 2 for calling the UDFWrapper obj's underlying member method code with example usage: obj._prepare_udf_args(udf, fp_config) and returns: args,  kwargs