
"""simple docstring"""







from .imports import is_tqdm_available


if is_tqdm_available():
							from tqdm.auto import tqdm as _tqdm

from ..state import PartialState
def    __lowerCAmelCase    (_UpperCamelCase = True	,  *_UpperCamelCase	,  **_UpperCamelCase		):
	if not is_tqdm_available():
		raise ImportError('Accelerate\'s `tqdm` module requires `tqdm` to be installed. Please run `pip install tqdm`.'		)
	__lowerCAmelCase      :						Optional[Any]						      =				False
	if main_process_only:
		__lowerCAmelCase      :						str						      =				PartialState().local_process_index == 0
	return _tqdm(*_UpperCamelCase	,  **_UpperCamelCase	,  disable=_UpperCamelCase		)

"""simple docstring"""







import warnings
from functools import wraps
from typing import Callable
def    __lowerCAmelCase    (_UpperCamelCase		):

	@wraps(_UpperCamelCase		)
	def _inner_fn(*_UpperCamelCase	,  **_UpperCamelCase		):
		warnings.warn(
		    (F"'{fn.__name__}' is experimental and might be subject to breaking changes in the future.")	,  _UpperCamelCase	,  )
		return fn(*_UpperCamelCase	,  **_UpperCamelCase		)

	return _inner_fn