





'''simple docstring'''


from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


_lowerCamelCase					:						List[str]					     =							{'configuration_dinat': ['DINAT_PRETRAINED_CONFIG_ARCHIVE_MAP', 'DinatConfig']}


try:
				if not is_torch_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				_lowerCamelCase					:						int					     =							[
				    'DINAT_PRETRAINED_MODEL_ARCHIVE_LIST',
				    'DinatForImageClassification',
				    'DinatModel',
				    'DinatPreTrainedModel',
				    'DinatBackbone',
				]

if TYPE_CHECKING:
				from .configuration_dinat import DINAT_PRETRAINED_CONFIG_ARCHIVE_MAP, DinatConfig

				try:
								if not is_torch_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .modeling_dinat import (
								    DINAT_PRETRAINED_MODEL_ARCHIVE_LIST,
								    DinatBackbone,
								    DinatForImageClassification,
								    DinatModel,
								    DinatPreTrainedModel,
								)

else:
				import sys

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


from transformers import PretrainedConfig



class     snake_case_			(						__A			):
   __A      :						List[Any]   =							"custom"






   def __init__( self							:	Any      ,		lowercase_							:	Optional[int]=1      ,		**lowercase_							:	Any    )   ->		int:
       lowercase__					:  List[Any]          =							attribute
       super().__init__(**lowercase_    )



class     snake_case_			(						__A			):
   __A      :						Optional[int]   =							"custom"






   def __init__( self							:	Tuple      ,		lowercase_							:	str=1      ,		**lowercase_							:	List[Any]    )   ->		Dict:
       lowercase__					:  Union[str, Any]          =							attribute



