
'''simple docstring'''







from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_torch_available,
)


_lowercase			:  Tuple   							=	{
    "configuration_encodec": [
        "ENCODEC_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "EncodecConfig",
    ],
    "feature_extraction_encodec": ["EncodecFeatureExtractor"],
}

try:
							if not is_torch_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							_lowercase			:  str   							=	[
							    "ENCODEC_PRETRAINED_MODEL_ARCHIVE_LIST",
							    "EncodecModel",
							    "EncodecPreTrainedModel",
							]

if TYPE_CHECKING:
							from .configuration_encodec import (
							    ENCODEC_PRETRAINED_CONFIG_ARCHIVE_MAP,
							    EncodecConfig,
							)
							from .feature_extraction_encodec import EncodecFeatureExtractor

							try:
														if not is_torch_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_encodec import (
														    ENCODEC_PRETRAINED_MODEL_ARCHIVE_LIST,
														    EncodecModel,
														    EncodecPreTrainedModel,
														)

else:
							import sys

							_lowercase			:  Optional[int]   							=	_LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)





'''simple docstring'''







import warnings

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


_lowercase			:  Any   							=	logging.get_logger(__name__)






class 			lowerCAmelCase__       (  lowerCamelCase_					):






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


											"""simple docstring"""





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



