



def    lowerCamelCase_(lowerCamelCase_    ) ->       str:

						if isinstance(lowerCamelCase_    ,   lowerCamelCase_    ):
												raise TypeError("'float' object cannot be interpreted as an integer"    )
						if isinstance(lowerCamelCase_    ,   lowerCamelCase_    ):
												raise TypeError("'str' object cannot be interpreted as an integer"    )

						if num == 0:
												return "0b0"

						UpperCAmelCase         =     False

						if num < 0:
												UpperCAmelCase         =     True
												UpperCAmelCase         =     -num

						UpperCAmelCase         =     []
						while num > 0:
												binary.insert(0    ,   num % 2    )
												num >>= 1

						if negative:
												return "-0b" + "".join(str(lowerCamelCase_    ) for e in binary    )

						return "0b" + "".join(str(lowerCamelCase_    ) for e in binary    )


if __name__ == "__main__":
		import doctest

		doctest.testmod()








from argparse import ArgumentParser

from .env import EnvironmentCommand

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

						# Register commands
						EnvironmentCommand.register_subcommand(lowerCamelCase_    )

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

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

						# Run
						UpperCAmelCase         =     args.func(lowerCamelCase_    )
						service.run()


if __name__ == "__main__":
		main()



