


from argparse import ArgumentParser

from .add_new_model import AddNewModelCommand
from .add_new_model_like import AddNewModelLikeCommand
from .convert import ConvertCommand
from .download import DownloadCommand
from .env import EnvironmentCommand
from .lfs import LfsCommands
from .pt_to_tf import PTtoTFCommand
from .run import RunCommand
from .serving import ServeCommand
from .user import UserCommands







def 	SCREAMING_SNAKE_CASE_						(      )     ->		int:
       a_ :		int							=  ArgumentParser('Transformers CLI tool'  ,   usage='transformers-cli <command> [<args>]'    )
       a_ :		List[Any]							=  parser.add_subparsers(help='transformers-cli command helpers'    )

       # Register commands
       ConvertCommand.register_subcommand(__A    )
       DownloadCommand.register_subcommand(__A    )
       EnvironmentCommand.register_subcommand(__A    )
       RunCommand.register_subcommand(__A    )
       ServeCommand.register_subcommand(__A    )
       UserCommands.register_subcommand(__A    )
       AddNewModelCommand.register_subcommand(__A    )
       AddNewModelLikeCommand.register_subcommand(__A    )
       LfsCommands.register_subcommand(__A    )
       PTtoTFCommand.register_subcommand(__A    )

       # Let's go
       a_ :		Tuple							=  parser.parse_args()

       if not hasattr(__A  ,   'func'    ):
              parser.print_help()
              exit(1    )

       # Run
       a_ :		Union[str, Any]							=  args.func(__A    )
       service.run()


if __name__ == "__main__":
   main()






def 	SCREAMING_SNAKE_CASE_						(      __A			:      int    )     ->		int:

       """simple docstring"""

       if not isinstance(__A  ,   __A    ):
              raise ValueError('Input must be an integer'    )
       if input_num <= 0:
              raise ValueError('Input must be positive'    )
       return sum(
           divisor for divisor in range(1  ,   input_num // 2 + 1    ) if input_num % divisor == 0    )


if __name__ == "__main__":
   import doctest

   doctest.testmod()


