





"""simple docstring"""


from __future__ import annotations

from enum import Enum



class    lowercase_ (   _A							):
       snake_case__ :							Any 							=   24
       snake_case__ :							Optional[Any] 							=   21
       snake_case__ :							Any 							=   18
       snake_case__ :							List[Any] 							=   15
       snake_case__ :							Union[str, Any] 							=   12
       snake_case__ :							str 							=   9
       snake_case__ :							Optional[Any] 							=   6
       snake_case__ :							Optional[int] 							=   3
       snake_case__ :							int 							=   2
       snake_case__ :							Optional[int] 							=   1
       snake_case__ :							Union[str, Any] 							=   -1
       snake_case__ :							Optional[int] 							=   -2
       snake_case__ :							List[Any] 							=   -3
       snake_case__ :							List[str] 							=   -6
       snake_case__ :							Tuple 							=   -9
       snake_case__ :							Optional[Any] 							=   -12
       snake_case__ :							Any 							=   -15
       snake_case__ :							List[Any] 							=   -18
       snake_case__ :							Dict 							=   -21
       snake_case__ :							Optional[int] 							=   -24



class    lowercase_ (   _A							):
       snake_case__ :							Dict 							=   8
       snake_case__ :							Optional[int] 							=   7
       snake_case__ :							Dict 							=   6
       snake_case__ :							Tuple 							=   5
       snake_case__ :							Union[str, Any] 							=   4
       snake_case__ :							Union[str, Any] 							=   3
       snake_case__ :							Optional[Any] 							=   2
       snake_case__ :							List[Any] 							=   1





def 							a__	(     _UpperCAmelCase		,   _UpperCAmelCase		,   _UpperCAmelCase		,   )			->     float:

 '''simple docstring'''






 if isinstance(__UpperCamelCase		,   __UpperCamelCase		):
  snake_case__										= SIUnit[known_prefix.lower()]
 if isinstance(__UpperCamelCase		,   __UpperCamelCase		):
  snake_case__										= SIUnit[unknown_prefix.lower()]
 snake_case__										= known_amount * (
     1_0 ** (known_prefix.value - unknown_prefix.value)
 )
 return unknown_amount





def 							a__	(     _UpperCAmelCase		,   _UpperCAmelCase		,   _UpperCAmelCase		,   )			->     float:

 '''simple docstring'''






 if isinstance(__UpperCamelCase		,   __UpperCamelCase		):
  snake_case__										= BinaryUnit[known_prefix.lower()]
 if isinstance(__UpperCamelCase		,   __UpperCamelCase		):
  snake_case__										= BinaryUnit[unknown_prefix.lower()]
 snake_case__										= known_amount * (
     2 ** ((known_prefix.value - unknown_prefix.value) * 1_0)
 )
 return unknown_amount


if __name__ == "__main__":
   import doctest

   doctest.testmod()







from typing import List

import datasets
from datasets.tasks import ImageClassification

from ..folder_based_builder import folder_based_builder


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



class 			a     (   folder_based_builder.FolderBasedBuilderConfig			):

     '''simple docstring'''





     lowerCAmelCase				:       bool   		=  None
     lowerCAmelCase				:       bool   		=  None



class 			a     (   folder_based_builder.FolderBasedBuilder			):

     '''simple docstring'''





     lowerCAmelCase				:       List[Any]   		=  datasets.Image()
     lowerCAmelCase				:       List[Any]   		=  'image'
     lowerCAmelCase				:       List[Any]   		=  ImageFolderConfig
     lowerCAmelCase				:       List[str]  # definition at the bottom of the script
     lowerCAmelCase				:       Dict   		=  ImageClassification(image_column='image'	,   label_column='label'			)


_lowerCamelCase			 =						[
    '.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',
]
_lowerCamelCase			 =						IMAGE_EXTENSIONS





