

"""simple docstring"""





from transformers import HfArgumentParser, PyTorchBenchmark, PyTorchBenchmarkArguments



def 							_lowerCAmelCase   (    ):


					'''simple docstring'''






					UpperCamelCase__		:     Dict								=HfArgumentParser(UpperCAmelCase					)
					try:
										UpperCamelCase__		:     str								=parser.parse_args_into_dataclasses()[0]
					except ValueError as e:
										UpperCamelCase__		:     Optional[int]								='''Arg --no_{0} is no longer used, please use --no-{0} instead.'''
										UpperCamelCase__		:     str								=''' '''.join(str(UpperCAmelCase					).split(''' '''					)[:-1]					)
										UpperCamelCase__		:     List[str]								=''''''
										UpperCamelCase__		:     Optional[int]								=eval(str(UpperCAmelCase					).split(''' '''					)[-1]					)
										UpperCamelCase__		:     str								=[]
										for arg in depreciated_args:
															# arg[2:] removes '--'
															if arg[2:] in PyTorchBenchmarkArguments.deprecated_args:
																				# arg[5:] removes '--no_'
																				full_error_msg += arg_error_msg.format(arg[5:]					)
															else:
																				wrong_args.append(UpperCAmelCase					)
										if len(UpperCAmelCase					) > 0:
															UpperCamelCase__		:     List[Any]								=full_error_msg + begin_error_msg + str(UpperCAmelCase					)
										raise ValueError(UpperCAmelCase					)

					UpperCamelCase__		:     Tuple								=PyTorchBenchmark(args=UpperCAmelCase					)
					benchmark.run()


if __name__ == "__main__":
				main()





"""simple docstring"""





def 							_lowerCAmelCase   (    UpperCAmelCase  :				int   ,				UpperCAmelCase  :				int   ,				UpperCAmelCase  :				int					):


					'''simple docstring'''






					if power < 0:
										return -1
					base %= mod
					UpperCamelCase__		:     Any								=1

					while power > 0:
										if power & 1:
															UpperCamelCase__		:     Optional[Any]								=(result * base) % mod
										UpperCamelCase__		:     Union[str, Any]								=power >> 1
										UpperCamelCase__		:     Union[str, Any]								=(base * base) % mod

					return result



def 							_lowerCAmelCase   (    ):


					'''simple docstring'''






					print(modular_exponential(3   ,				200   ,				13					)					)


if __name__ == "__main__":
				import doctest

				doctest.testmod()

				main()


