






"""simple docstring"""
class      UpperCamelCase_			:





	def __init__( self   :					List[Any]      ,      lowerCAmelCase_   :					list[int]		)		->     None:
				UpperCAmelCase_	:					str     	=   len(lowerCAmelCase_		)
				UpperCAmelCase_	:					Dict     	=   [0] * len_array

				if len_array > 0:
							UpperCAmelCase_	:					str     	=   array[0]

				for i in range(1      ,      lowerCAmelCase_		):
							UpperCAmelCase_	:					int     	=   self.prefix_sum[i - 1] + array[i]





	def 	_SCREAMING_SNAKE_CASE ( self   :					List[str]      ,      lowerCAmelCase_   :					int      ,      lowerCAmelCase_   :					int		)		->     int:
				if start == 0:
							return self.prefix_sum[end]

				return self.prefix_sum[end] - self.prefix_sum[start - 1]





	def 	_SCREAMING_SNAKE_CASE ( self   :					str      ,      lowerCAmelCase_   :					int		)		->     bool:
				UpperCAmelCase_	:					int     	=   {0}
				for sum_item in self.prefix_sum:
							if sum_item - target_sum in sums:
										return True

							sums.add(lowerCAmelCase_		)

				return False


if __name__ == "__main__":
			import doctest

			doctest.testmod()







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 							UpperCamelCase_( )       ->		List[Any]:
    _lowercase			:				int 						=						ArgumentParser('Transformers CLI tool'				,					usage='transformers-cli <command> [<args>]'					)
    _lowercase			:				Optional[Any] 						=						parser.add_subparsers(help='transformers-cli command helpers'					)

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

    # Let's go
    _lowercase			:				Any 						=						parser.parse_args()

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

    # Run
    _lowercase			:				Optional[int] 						=						args.func(lowerCamelCase_					)
    service.run()


if __name__ == "__main__":
 main()


