
from typing import Callable, Optional

from .. import Features
from ..packaged_modules.generator.generator import Generator
from .abc import AbstractDatasetInputStream
class       _lowerCAmelCase  (		__magic_name__							):

 """simple docstring"""

 def __init__(						self			:			Union[str, Any]					, SCREAMING_SNAKE_CASE__			:			Callable					, SCREAMING_SNAKE_CASE__			:			Optional[Features] = None					, SCREAMING_SNAKE_CASE__			:			str = None					, SCREAMING_SNAKE_CASE__			:			bool = False					, SCREAMING_SNAKE_CASE__			:			bool = False					, SCREAMING_SNAKE_CASE__			:			Optional[dict] = None					, SCREAMING_SNAKE_CASE__			:			Optional[int] = None					, **SCREAMING_SNAKE_CASE__			:			Any					, ):






      """simple docstring"""



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






 def      __lowerCAmelCase  (						self			:			Dict   ):






      """simple docstring"""



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

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




def  __lowerCamelCase					( _lowercase			)       ->      str:
     return "".join(chr(ord(_lowercase			) - 32			) if 'a' <= char <= 'z' else char for char in word			)


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

 testmod()


