





from typing import List

import datasets
from datasets.tasks import ImageClassification

from ..folder_based_builder import folder_based_builder


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

class 					snake_case					(   folder_based_builder.FolderBasedBuilderConfig	):




 """simple docstring"""



 SCREAMING_SNAKE_CASE_     : bool      		=None
 SCREAMING_SNAKE_CASE_     : bool      		=None






class 					snake_case					(   folder_based_builder.FolderBasedBuilder	):




 """simple docstring"""



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






a__							:							Tuple			=[
    '''.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''',
]
a__							:							Optional[int]			=IMAGE_EXTENSIONS







'''simple docstring'''
def     lowercase__       (       __lowercase						:  list    ,  __lowercase						:  int    ,  __lowercase						:  int    ,  __lowercase						:  int					)			->				int:



       """simple docstring"""






       __UpperCamelCase	=  int((lower_bound + upper_bound) // 2					)
       if array[r] == value:
              return r
       if lower_bound >= upper_bound:
              return -1
       if array[r] < value:
              return binary_search(__lowercase    ,  r + 1    ,  __lowercase    ,  __lowercase					)
       else:
              return binary_search(__lowercase    ,  __lowercase    ,  r - 1    ,  __lowercase					)
def     lowercase__       (       __lowercase						:  int    ,  __lowercase						:  list					)			->				list:



       """simple docstring"""






       __UpperCamelCase	=  0
       if matrix[index][0] == value:
              return [index, 0]
       while index < len(__lowercase					) and matrix[index][0] < value:
              __UpperCamelCase	=  binary_search(matrix[index]    ,  0    ,  len(matrix[index]					) - 1    ,  __lowercase					)
              if r != -1:
                     return [index, r]
              index += 1
       return [-1, -1]


if __name__ == "__main__":
    import doctest

    doctest.testmod()
