


from .imports import is_tqdm_available


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

from ..state import PartialState





def __UpperCAmelCase       (		__A = True ,						*__A ,						**__A			)						->					Any:



       '''simple docstring'''





       if not is_tqdm_available():
              raise ImportError("Accelerate's `tqdm` module requires `tqdm` to be installed. Please run `pip install tqdm`."			)
       UpperCAmelCase__										=     False
       if main_process_only:
              UpperCAmelCase__										=     PartialState().local_process_index == 0
       return _tqdm(*__A ,						**__A ,						disable=__A			)









import warnings

from ...utils import logging
from .image_processing_dpt import DPTImageProcessor


A      = logging.get_logger(__name__)


class     lowercase__  (					__SCREAMING_SNAKE_CASE		):






  def __init__(					self      :					Union[str, Any]		,						*_lowercase      :					Any		,						**_lowercase      :					Optional[int] ):




         """simple docstring"""







         warnings.warn(
             "The class DPTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"
             " use DPTImageProcessor instead."		,						_lowercase		,						)
         super().__init__(*_lowercase		,						**_lowercase )





