






'''simple docstring'''







from typing import List

import datasets
from datasets.tasks import ImageClassification

from ..folder_based_builder import folder_based_builder


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




class 					__UpperCAmelCase (		folder_based_builder.FolderBasedBuilderConfig	):

      '''simple docstring'''





      SCREAMING_SNAKE_CASE				:    bool				       =					None
      SCREAMING_SNAKE_CASE				:    bool				       =					None




class 					__UpperCAmelCase (		folder_based_builder.FolderBasedBuilder	):

      '''simple docstring'''





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


UpperCamelCase_					=				[
    ".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",
]
UpperCamelCase_					=				IMAGE_EXTENSIONS







'''simple docstring'''







import re






def  lowerCAmelCase__		(					a_  :     Optional[int]			)   -> Optional[Any]:
       def docstring_decorator(a_  :     Dict			):
              UpperCAmelCase__	:   Optional[int]												=	fn.__doc__
              UpperCAmelCase__	:   Dict												=	func_doc.split('''\n'''			)
              UpperCAmelCase__	:   Any												=	0
              while i < len(a_			) and re.search(r'''^\s*Examples?:\s*$'''			,						lines[i]			) is None:
                     i += 1
              if i < len(a_			):
                     UpperCAmelCase__	:   List[Any]												=	example_docstring
                     UpperCAmelCase__	:   int												=	'''\n'''.join(a_			)
              else:
                     raise ValueError(
                         f"""The function {fn} should have an empty 'Examples:' in its docstring as placeholder, """
                         f"""current docstring is:\n{func_doc}"""			)
              UpperCAmelCase__	:   Any												=	func_doc
              return fn

       return docstring_decorator