



'''simple docstring'''

from typing import Callable, Optional

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

class      __magic_name__						(   _UpperCamelCase       ):







							def __init__(							self :	Optional[int]     ,_UpperCAmelCase :	Callable     ,_UpperCAmelCase :	Optional[Features] = None     ,_UpperCAmelCase :	str = None     ,_UpperCAmelCase :	bool = False     ,_UpperCAmelCase :	bool = False     ,_UpperCAmelCase :	Optional[dict] = None     ,_UpperCAmelCase :	Optional[int] = None     ,**_UpperCAmelCase :	str     ,):
									super().__init__(
									    features=_UpperCAmelCase     ,cache_dir=_UpperCAmelCase     ,keep_in_memory=_UpperCAmelCase     ,streaming=_UpperCAmelCase     ,num_proc=_UpperCAmelCase     ,**_UpperCAmelCase     ,)
									_a					:				Optional[int]				=							Generator(
									    cache_dir=_UpperCAmelCase     ,features=_UpperCAmelCase     ,generator=_UpperCAmelCase     ,gen_kwargs=_UpperCAmelCase     ,**_UpperCAmelCase     ,)







							def 							__lowercase      (							self :	List[str]		):
									# Build iterable dataset
									if self.streaming:
											_a					:				str				=							self.builder.as_streaming_dataset(split='train'		)
									# Build regular (map-style) dataset
									else:
											_a					:				Dict				=							None
											_a					:				Dict				=							None
											_a					:				Dict				=							None
											_a					:				str				=							None

											self.builder.download_and_prepare(
											    download_config=_UpperCAmelCase     ,download_mode=_UpperCAmelCase     ,verification_mode=_UpperCAmelCase     ,base_path=_UpperCAmelCase     ,num_proc=self.num_proc     ,)
											_a					:				Dict				=							self.builder.as_dataset(
											    split='train'     ,verification_mode=_UpperCAmelCase     ,in_memory=self.keep_in_memory		)
									return dataset









'''simple docstring'''

# Function to print upper half of diamond (pyramid)



def 					__lowerCamelCase					(				lowerCAmelCase_  )      ->				int:
		for i in range(0						,      lowerCAmelCase_  ):
				for _ in range(0						,      n - i - 1  ):  # printing spaces
						print(' '						,      end=''  )
				for _ in range(0						,      i + 1  ):  # printing stars
						print('* '						,      end=''  )
				print()



def 					__lowerCamelCase					(				lowerCAmelCase_  )      ->				Union[str, Any]:
		for i in range(lowerCAmelCase_						,      0						,      -1  ):
				for _ in range(lowerCAmelCase_						,      0						,      -1  ):  # printing stars
						print('* '						,      end=''  )
				print()
				for _ in range(n - i + 1						,      0						,      -1  ):  # printing spaces
						print(' '						,      end=''  )



def 					__lowerCamelCase					(				lowerCAmelCase_  )      ->				Tuple:
		if n <= 0:
				print('       ...       ....        nothing printing :('  )
				return
		floyd(lowerCAmelCase_  )  # upper half
		reverse_floyd(lowerCAmelCase_  )  # lower half


if __name__ == "__main__":
							print(r'''| /\ | |- |  |-  |--| |\  /| |-''')
							print(r'''|/  \| |- |_ |_  |__| | \/ | |_''')
							__lowerCAmelCase						      =       1
							while K:
														__lowerCAmelCase						      =       int(input('''enter the number and , and see the magic : '''))
														print()
														pretty_print(user_number)
														__lowerCAmelCase						      =       int(input('''press 0 to exit... and 1 to continue...'''))

							print('''Good Bye...''')




