

from typing import Callable, Optional

from .. import Features
from ..packaged_modules.generator.generator import Generator
from .abc import AbstractDatasetInputStream


class SCREAMING_SNAKE_CASE	(		__snake_case				):






			"""simple docstring"""




			def __init__(     self			,					__UpperCamelCase			,					__UpperCamelCase = None			,					__UpperCamelCase = None			,					__UpperCamelCase = False			,					__UpperCamelCase = False			,					__UpperCamelCase = None			,					__UpperCamelCase = None			,					**__UpperCamelCase			,					):

				"""simple docstring"""


				super().__init__(
				    features=__UpperCamelCase			,					cache_dir=__UpperCamelCase			,					keep_in_memory=__UpperCamelCase			,					streaming=__UpperCamelCase			,					num_proc=__UpperCamelCase			,					**__UpperCamelCase			,					)
				snake_case_   		=			Generator(
				    cache_dir=__UpperCamelCase			,					features=__UpperCamelCase			,					generator=__UpperCamelCase			,					gen_kwargs=__UpperCamelCase			,					**__UpperCamelCase			,					)







			def       __lowerCAmelCase			(     self				):

				"""simple docstring"""


				if self.streaming:
					snake_case_   		=			self.builder.as_streaming_dataset(split='train'				)
				# Build regular (map-style) dataset
				else:
					snake_case_   		=			None
					snake_case_   		=			None
					snake_case_   		=			None
					snake_case_   		=			None

					self.builder.download_and_prepare(
					    download_config=__UpperCamelCase			,					download_mode=__UpperCamelCase			,					verification_mode=__UpperCamelCase			,					base_path=__UpperCamelCase			,					num_proc=self.num_proc			,					)
					snake_case_   		=			self.builder.as_dataset(
					    split='train'			,					verification_mode=__UpperCamelCase			,					in_memory=self.keep_in_memory				)
				return dataset



A									=  [
    'Audio',
    'Array2D',
    'Array3D',
    'Array4D',
    'Array5D',
    'ClassLabel',
    'Features',
    'Sequence',
    'Value',
    'Image',
    'Translation',
    'TranslationVariableLanguages',
]
from .audio import Audio
from .features import ArrayaD, ArrayaD, ArrayaD, ArrayaD, ClassLabel, Features, Sequence, Value
from .image import Image
from .translation import Translation, TranslationVariableLanguages
