
"""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 ( __a    ):

		'''simple docstring'''





		return {key.lstrip('''-'''    ): value for key, value in zip(unknown_args[::2],							unknown_args[1::2]    )}



def        _lowerCamelCase ( ):

		'''simple docstring'''





		SCREAMING_SNAKE_CASE_						 = ArgumentParser(
		    '''HuggingFace Datasets CLI tool''',							usage='''datasets-cli <command> [<args>]''',							allow_abbrev=__a    )
		SCREAMING_SNAKE_CASE_						 = parser.add_subparsers(help='''datasets-cli command helpers'''    )
		set_verbosity_info()

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

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

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


if __name__ == "__main__":
						main()

"""simple docstring"""




def        _lowerCamelCase ( __a    ):

		if not isinstance(__a,							__a    ):
				SCREAMING_SNAKE_CASE_						 = F'Input value of [number={number}] must be an integer'
				raise TypeError(__a    )

		if number < 1:
				SCREAMING_SNAKE_CASE_						 = F'Input value of [number={number}] must be > 0'
				raise ValueError(__a    )

		SCREAMING_SNAKE_CASE_						 = 1

		for i in range(1,							__a    ):
				current_number *= 4 * i - 2
				current_number //= i + 1

		return current_number


if __name__ == "__main__":
						import doctest

						doctest.testmod()