def METHOD_NAME():
    sys.stdout = open(
        sys.stdout.fileno(), "w", encoding="utf8", errors="surrogateescape"
    )
    sys.stderr = open(
        sys.stderr.fileno(), "w", encoding="utf8", errors="surrogateescape"
    )
    args = parse_args()
    updates = JobspecUpdates(args.jobid)
    for arg in args.updates:
        key, _, value = arg.partition("=")
        updates.add_update(key, value)
    if args.dry_run:
        print(updates.to_json())
        sys.exit(0)
    updates.send_rpc().get()
    if args.verbose:
        for key, value in updates.items():
            LOGGER.info(f"updated {key} to {value}")