from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tf_available, is_torch_available


__SCREAMING_SNAKE_CASE						:    Any     = {
    'configuration_flaubert': ['FLAUBERT_PRETRAINED_CONFIG_ARCHIVE_MAP', 'FlaubertConfig', 'FlaubertOnnxConfig'],
    'tokenization_flaubert': ['FlaubertTokenizer'],
}

try:
				if not is_torch_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				__SCREAMING_SNAKE_CASE						:    Any     = [
				    'FLAUBERT_PRETRAINED_MODEL_ARCHIVE_LIST',
				    'FlaubertForMultipleChoice',
				    'FlaubertForQuestionAnswering',
				    'FlaubertForQuestionAnsweringSimple',
				    'FlaubertForSequenceClassification',
				    'FlaubertForTokenClassification',
				    'FlaubertModel',
				    'FlaubertWithLMHeadModel',
				    'FlaubertPreTrainedModel',
				]

try:
				if not is_tf_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				__SCREAMING_SNAKE_CASE						:    int     = [
				    'TF_FLAUBERT_PRETRAINED_MODEL_ARCHIVE_LIST',
				    'TFFlaubertForMultipleChoice',
				    'TFFlaubertForQuestionAnsweringSimple',
				    'TFFlaubertForSequenceClassification',
				    'TFFlaubertForTokenClassification',
				    'TFFlaubertModel',
				    'TFFlaubertPreTrainedModel',
				    'TFFlaubertWithLMHeadModel',
				]


if TYPE_CHECKING:
				from .configuration_flaubert import FLAUBERT_PRETRAINED_CONFIG_ARCHIVE_MAP, FlaubertConfig, FlaubertOnnxConfig
				from .tokenization_flaubert import FlaubertTokenizer

				try:
								if not is_torch_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .modeling_flaubert import (
								    FLAUBERT_PRETRAINED_MODEL_ARCHIVE_LIST,
								    FlaubertForMultipleChoice,
								    FlaubertForQuestionAnswering,
								    FlaubertForQuestionAnsweringSimple,
								    FlaubertForSequenceClassification,
								    FlaubertForTokenClassification,
								    FlaubertModel,
								    FlaubertPreTrainedModel,
								    FlaubertWithLMHeadModel,
								)

				try:
								if not is_tf_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .modeling_tf_flaubert import (
								    TF_FLAUBERT_PRETRAINED_MODEL_ARCHIVE_LIST,
								    TFFlaubertForMultipleChoice,
								    TFFlaubertForQuestionAnsweringSimple,
								    TFFlaubertForSequenceClassification,
								    TFFlaubertForTokenClassification,
								    TFFlaubertModel,
								    TFFlaubertPreTrainedModel,
								    TFFlaubertWithLMHeadModel,
								)

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 ImageClassification

from ..folder_based_builder import folder_based_builder


lowercase_           =	datasets.utils.logging.get_logger(__name__)


class        A_					(       folder_based_builder.FolderBasedBuilderConfig    ):




      '''simple docstring'''


      __snake_case					       =   None
      __snake_case					       =   None



class        A_					(       folder_based_builder.FolderBasedBuilder    ):




      '''simple docstring'''


      __snake_case					       =   datasets.Image()
      __snake_case					       =   """image"""
      __snake_case					       =   ImageFolderConfig
      __snake_case					       =   42  # definition at the bottom of the script
      __snake_case					       =   ImageClassification(image_column="""image"""					,      label_column="""label"""    )



lowercase_           =	[
    '.blp',
    '.bmp',
    '.dib',
    '.bufr',
    '.cur',
    '.pcx',
    '.dcx',
    '.dds',
    '.ps',
    '.eps',
    '.fit',
    '.fits',
    '.fli',
    '.flc',
    '.ftc',
    '.ftu',
    '.gbr',
    '.gif',
    '.grib',
    '.h5',
    '.hdf',
    '.png',
    '.apng',
    '.jp2',
    '.j2k',
    '.jpc',
    '.jpf',
    '.jpx',
    '.j2c',
    '.icns',
    '.ico',
    '.im',
    '.iim',
    '.tif',
    '.tiff',
    '.jfif',
    '.jpe',
    '.jpg',
    '.jpeg',
    '.mpg',
    '.mpeg',
    '.msp',
    '.pcd',
    '.pxr',
    '.pbm',
    '.pgm',
    '.ppm',
    '.pnm',
    '.psd',
    '.bw',
    '.rgb',
    '.rgba',
    '.sgi',
    '.ras',
    '.tga',
    '.icb',
    '.vda',
    '.vst',
    '.webp',
    '.wmf',
    '.emf',
    '.xbm',
    '.xpm',
]
lowercase_           =	IMAGE_EXTENSIONS

