
'''simple docstring'''
def       __SCREAMING_SNAKE_CASE   (						_SCREAMING_SNAKE_CASE   ):
							_snake_case     =						str(_SCREAMING_SNAKE_CASE   ).strip()
							if not oct_string:
														raise ValueError("""Empty string was passed to the function"""   )
							_snake_case     =						oct_string[0] == """-"""
							if is_negative:
														_snake_case     =						oct_string[1:]
							if not oct_string.isdigit() or not all(0 <= int(_SCREAMING_SNAKE_CASE   ) <= 7 for char in oct_string   ):
														raise ValueError("""Non-octal value was passed to the function"""   )
							_snake_case     =						0
							for char in oct_string:
														_snake_case     =						8 * decimal_number + int(_SCREAMING_SNAKE_CASE   )
							if is_negative:
														_snake_case     =						-decimal_number
							return decimal_number


if __name__ == "__main__":
				from doctest import testmod

				testmod()

'''simple docstring'''
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     _lowerCAmelCase					(					folder_based_builder.FolderBasedBuilderConfig   ):







							'''simple docstring'''

							lowerCAmelCase_      		=		None
							lowerCAmelCase_      		=		None


class     _lowerCAmelCase					(					folder_based_builder.FolderBasedBuilder   ):







							'''simple docstring'''

							lowerCAmelCase_      		=		datasets.Image()
							lowerCAmelCase_      		=		"image"
							lowerCAmelCase_      		=		ImageFolderConfig
							lowerCAmelCase_      		=		42  # definition at the bottom of the script
							lowerCAmelCase_      		=		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