


import re
def 							UpperCamelCase_(					_A :str	)->		bool:
			UpperCamelCase__       =							re.compile(r"^(\+91[\-\s]?)?[0]?(91)?[789]\d{9}$"	)
			if match := re.search(_A					,  _A	):
						return match.string == phone
			return False


if __name__ == "__main__":
						print(indian_phone_validator('+918827897895'))






from typing import Callable, Optional

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







class 							lowerCamelCase__						(				UpperCAmelCase   ):






			"""simple docstring"""






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

						'''simple docstring'''


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







			def 					snake_case__					(				self  ):

						'''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=snake_case   ,    download_mode=snake_case   ,    verification_mode=snake_case   ,    base_path=snake_case   ,    num_proc=self.num_proc   ,    )
									UpperCamelCase__       =							self.builder.as_dataset(
									    split="train"   ,    verification_mode=snake_case   ,    in_memory=self.keep_in_memory  )
						return dataset


