

from typing import TYPE_CHECKING

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


_SCREAMING_SNAKE_CASE  :						Optional[int]         =    {'''configuration_deit''': ['''DEIT_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''DeiTConfig''', '''DeiTOnnxConfig''']}

try:
       if not is_vision_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       _SCREAMING_SNAKE_CASE  :						Any         =    ['''DeiTFeatureExtractor''']
       _SCREAMING_SNAKE_CASE  :						Dict         =    ['''DeiTImageProcessor''']

try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       _SCREAMING_SNAKE_CASE  :						Dict         =    [
           '''DEIT_PRETRAINED_MODEL_ARCHIVE_LIST''',
           '''DeiTForImageClassification''',
           '''DeiTForImageClassificationWithTeacher''',
           '''DeiTForMaskedImageModeling''',
           '''DeiTModel''',
           '''DeiTPreTrainedModel''',
       ]

try:
       if not is_tf_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       _SCREAMING_SNAKE_CASE  :						Tuple         =    [
           '''TF_DEIT_PRETRAINED_MODEL_ARCHIVE_LIST''',
           '''TFDeiTForImageClassification''',
           '''TFDeiTForImageClassificationWithTeacher''',
           '''TFDeiTForMaskedImageModeling''',
           '''TFDeiTModel''',
           '''TFDeiTPreTrainedModel''',
       ]


if TYPE_CHECKING:
       from .configuration_deit import DEIT_PRETRAINED_CONFIG_ARCHIVE_MAP, DeiTConfig, DeiTOnnxConfig

       try:
              if not is_vision_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .feature_extraction_deit import DeiTFeatureExtractor
              from .image_processing_deit import DeiTImageProcessor

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_deit import (
                  DEIT_PRETRAINED_MODEL_ARCHIVE_LIST,
                  DeiTForImageClassification,
                  DeiTForImageClassificationWithTeacher,
                  DeiTForMaskedImageModeling,
                  DeiTModel,
                  DeiTPreTrainedModel,
              )

       try:
              if not is_tf_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_tf_deit import (
                  TF_DEIT_PRETRAINED_MODEL_ARCHIVE_LIST,
                  TFDeiTForImageClassification,
                  TFDeiTForImageClassificationWithTeacher,
                  TFDeiTForMaskedImageModeling,
                  TFDeiTModel,
                  TFDeiTPreTrainedModel,
              )


else:
       import sys

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





from typing import List

import datasets
from datasets.tasks import AudioClassification

from ..folder_based_builder import folder_based_builder


_SCREAMING_SNAKE_CASE  :						Optional[Any]         =    datasets.utils.logging.get_logger(__name__)






class  UpperCAmelCase__	( folder_based_builder.FolderBasedBuilderConfig ):






  """simple docstring"""


  a     =      None
  a     =      None






class  UpperCAmelCase__	( folder_based_builder.FolderBasedBuilder ):






  """simple docstring"""


  a     =      datasets.Audio()
  a     =      "audio"
  a     =      AudioFolderConfig
  a     =      42  # definition at the bottom of the script
  a     =      AudioClassification(audio_column="audio"		,  label_column="label" )



_SCREAMING_SNAKE_CASE  :						str         =    [
    '''.aiff''',
    '''.au''',
    '''.avr''',
    '''.caf''',
    '''.flac''',
    '''.htk''',
    '''.svx''',
    '''.mat4''',
    '''.mat5''',
    '''.mpc2k''',
    '''.ogg''',
    '''.paf''',
    '''.pvf''',
    '''.raw''',
    '''.rf64''',
    '''.sd2''',
    '''.sds''',
    '''.ircam''',
    '''.voc''',
    '''.w64''',
    '''.wav''',
    '''.nist''',
    '''.wavex''',
    '''.wve''',
    '''.xi''',
    '''.mp3''',
    '''.opus''',
]
_SCREAMING_SNAKE_CASE  :						List[Any]         =    AUDIO_EXTENSIONS


