





'''simple docstring'''


from argparse import ArgumentParser

from datasets.commands.convert import ConvertCommand
from datasets.commands.dummy_data import DummyDataCommand
from datasets.commands.env import EnvironmentCommand
from datasets.commands.run_beam import RunBeamCommand
from datasets.commands.test import TestCommand
from datasets.utils.logging import set_verbosity_info







def    _lowerCamelCase  (__lowerCamelCase  :     Union[str, Any]     )   ->    int:
			return {key.lstrip("-"     ): value for key, value in zip(unknown_args[::2]					,  unknown_args[1::2]     )}







def    _lowerCamelCase  ()   ->    str:
			a__     = ArgumentParser(
			    "HuggingFace Datasets CLI tool"					,  usage="datasets-cli <command> [<args>]"					,  allow_abbrev=SCREAMING_SNAKE_CASE_     )
			a__     = parser.add_subparsers(help="datasets-cli command helpers"     )
			set_verbosity_info()

			# Register commands
			ConvertCommand.register_subcommand(SCREAMING_SNAKE_CASE_     )
			EnvironmentCommand.register_subcommand(SCREAMING_SNAKE_CASE_     )
			TestCommand.register_subcommand(SCREAMING_SNAKE_CASE_     )
			RunBeamCommand.register_subcommand(SCREAMING_SNAKE_CASE_     )
			DummyDataCommand.register_subcommand(SCREAMING_SNAKE_CASE_     )

			# Parse args
			a__   ,				a__     = parser.parse_known_args()
			if not hasattr(SCREAMING_SNAKE_CASE_					,  "func"     ):
						parser.print_help()
						exit(1     )
			a__     = parse_unknown_args(SCREAMING_SNAKE_CASE_     )

			# Run
			a__     = args.func(SCREAMING_SNAKE_CASE_					,  **SCREAMING_SNAKE_CASE_     )
			service.run()


if __name__ == "__main__":
		main()












'''simple docstring'''


import re







def    _lowerCamelCase  (__lowerCamelCase  :     str     )   ->    bool:
			a__     = re.compile(
			    r"^(?:0|94|\+94|0{2}94)" r"7(0|1|2|4|5|6|7|8)" r"(-| |)" r"\d{7}$"     )

			return bool(re.search(__lowerCamelCase					,  __lowerCamelCase     )     )


if __name__ == "__main__":
		lowerCAmelCase_   :   Any       =					"0094702343221"

		print(is_sri_lankan_phone_number(phone))



