from.eraserimporterasedefmain(args:CommandLineArguments)->None:"""Entry point to the script."""withBitmap(args.bitmap)asbitmap:ifargs.encode:encode(bitmap,args.encode)elifargs.decode:decode(bitmap)elifargs.erase:erase(bitmap)if__name__=="__main__":try:main(parse_args())