

from .imports import is_tqdm_available


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

from ..state import PartialState

def 						UpperCamelCase					(lowercase_: bool = True    ,      *lowercase_: List[str]    ,      **lowercase_: Any					)     ->      Optional[Any]:
	if not is_tqdm_available():
		raise ImportError("""Accelerate's `tqdm` module requires `tqdm` to be installed. Please run `pip install tqdm`."""					)
	A__							:    int        =		False
	if main_process_only:
		A__							:    Optional[Any]        =		PartialState().local_process_index == 0
	return _tqdm(*lowercase_    ,      **lowercase_    ,      disable=lowercase_					)






import warnings

from ...utils import logging
from .image_processing_donut import DonutImageProcessor


A_       : Union[str, Any]         =			logging.get_logger(__name__)



class     _a						(__magic_name__				):


					'''simple docstring'''






					def __init__( self    ,       *A__    ,       **A__			):
						warnings.warn(
						    """The class DonutFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"""
						    """ use DonutImageProcessor instead."""    ,       A__    ,       )
						super().__init__(*A__    ,       **A__			)



