
from argparse import ArgumentParser

from .env import EnvironmentCommand



def 						lowercase_      (       )							->							int:
    """simple docstring"""

    snake_case								= ArgumentParser("Diffusers CLI tool"			,		usage="diffusers-cli <command> [<args>]"		)
    snake_case								= parser.add_subparsers(help="diffusers-cli command helpers"		)

    # Register commands
    EnvironmentCommand.register_subcommand(A__		)

    # Let's go
    snake_case								= parser.parse_args()

    if not hasattr(A__			,		"func"		):
        parser.print_help()
        exit(1		)

    # Run
    snake_case								= args.func(A__		)
    service.run()


if __name__ == "__main__":
   main()



from ..utils import DummyObject, requires_backends







class 					lowerCamelCase		(  metaclass=A_  ):
     UpperCAmelCase__    :							Union[str, Any]									=		["onnx"]





     def __init__(self				:   Tuple    ,   *_A				:   Optional[int]    ,   **_A				:   Any       )						->						Dict:
         requires_backends(self    ,   ["onnx"]       )





     @classmethod
     def 		UpperCAmelCase(cls				:   int    ,   *_A				:   Dict    ,   **_A				:   List[Any]       )						->						Optional[Any]:
         requires_backends(cls    ,   ["onnx"]       )





     @classmethod
     def 		UpperCAmelCase(cls				:   Dict    ,   *_A				:   Tuple    ,   **_A				:   Optional[Any]       )						->						int:
         requires_backends(cls    ,   ["onnx"]       )

