
"""simple docstring"""

import os
from distutils.util import strtobool






def 							A						(    snake_case				:Optional[Any]    , snake_case				:Tuple		)				->     Tuple:
 for e in env_keys:
  __UpperCamelCase      =	int(os.environ.get(snake_case    , -1		)		)
  if val >= 0:
   return val
 return default






def 							A						(    snake_case				:Optional[Any]    , snake_case				:Dict=False		)				->     Union[str, Any]:
 __UpperCamelCase      =	os.environ.get(snake_case    , str(snake_case		)		)
 return strtobool(snake_case		) == 1  # As its name indicates `strtobool` actually returns an int...






def 							A						(    snake_case				:Union[str, Any]    , snake_case				:str="no"		)				->     str:
 __UpperCamelCase      =	os.environ.get(snake_case    , str(snake_case		)		)
 return value





"""simple docstring"""

import warnings

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


UpperCamelCase     :    Optional[int]       =			logging.get_logger(__name__)

class __lowerCAmelCase		(				__SCREAMING_SNAKE_CASE      ):





     def __init__(     self     ,					*__UpperCAmelCase     ,					**__UpperCAmelCase				):

      '''simple docstring'''




      warnings.warn(
          'The class DonutFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
          ' use DonutImageProcessor instead.'     ,					__UpperCAmelCase     ,					)
      super().__init__(*__UpperCAmelCase     ,					**__UpperCAmelCase				)



