



"""simple docstring"""




from doctest import testmod
from math import sqrt

def 						__snake_case						(      SCREAMING_SNAKE_CASE__	:						Optional[int]				)  ->   list:





     '''simple docstring'''

     _UpperCAmelCase			:	Union[str, Any]								=    []
     if num < 1:
          return facs
     facs.append(1				)
     if num == 1:
          return facs
     facs.append(a_				)
     for i in range(2						,  int(sqrt(a_				)				) + 1				):
          if num % i == 0:  # If i is a factor of num
               facs.append(a_				)
               _UpperCAmelCase			:	Optional[Any]								=    num // i  # num//i is the other factor of num
               if d != i:  # If d and i are distinct
                    facs.append(a_				)  # we have found another factor
     facs.sort()
     return facs


if __name__ == "__main__":
 testmod(name="factors_of_a_number", verbose=True)








from transformers import HfArgumentParser, PyTorchBenchmark, PyTorchBenchmarkArguments
def      lowerCamelCase					(						)	->			Union[str, Any]:
							lowerCAmelCase_										=     HfArgumentParser(a_	)
							try:
														lowerCAmelCase_										=     parser.parse_args_into_dataclasses()[0]
							except ValueError as e:
														lowerCAmelCase_										=     'Arg --no_{0} is no longer used, please use --no-{0} instead.'
														lowerCAmelCase_										=     ' '.join(str(a_	).split(' '	)[:-1]	)
														lowerCAmelCase_										=     ''
														lowerCAmelCase_										=     eval(str(a_	).split(' '	)[-1]	)
														lowerCAmelCase_										=     []
														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(a_	)
														if len(a_	) > 0:
																					lowerCAmelCase_										=     full_error_msg + begin_error_msg + str(a_	)
														raise ValueError(a_	)

							lowerCAmelCase_										=     PyTorchBenchmark(args=a_	)
							benchmark.run()


if __name__ == "__main__":
		main()



