def apply_provider_preprocessing( kw: Dict[str, Any], provider: Optional[str], ) -> Dict[str, Any]:
source code