�
K�g� � � � d Z ddlZddlZddlmZ ddlZddlmZ ddlmZm Z da
d� Z G d� d ej � � Zd
� Z
G d� d� � Zd
� Zdd�ZdS )zWCustomizations of :mod:`joblib` and :mod:`threadpoolctl` tools for scikit-learn
usage.
� N)�update_wrapper)�ThreadpoolController� )�config_context�
get_configc � � t | d� � r| � |� � S t j dt � � | S )zFHelper function that intends to attach a config to a delayed function.�with_configz�`sklearn.utils.parallel.Parallel` needs to be used in conjunction with `sklearn.utils.parallel.delayed` instead of `joblib.delayed` to correctly propagate the scikit-learn configuration to the joblib workers.)�hasattrr �warnings�warn�UserWarning)�delayed_func�configs �f/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/sklearn/utils/parallel.py�_with_configr sN � ��|�]�+�+� ��'�'��/�/�/��
�7�
�
�
�
� �� c �"