def METHOD_NAME():
    parser = argparse.ArgumentParser(description="Create binaries json")
    parser.add_argument('--tag', metavar='tag', type=str, help='the tag to use (e.g v16.1.1)')
    parser.add_argument('--checksums_url', metavar='checksums_url', type=str, help='URL to the checksum')
    args = parser.parse_args()
    # Validate the tag format
    if args.tag and not validate_tag(args.tag):
        print("Error: The provided tag does not follow the 'vX.Y.Z' format.")
        sys.exit(1)
    # Ensure that only one of --tag or --checksums_url is specified
    if not bool(args.tag) ^ bool(args.checksums_url):
        parser.error("Only one of tag or --checksums_url must be specified")
        sys.exit(1)
    checksums_url = args.checksums_url if args.checksums_url else f"https://github.com/osmosis-labs/osmosis/releases/download/{args.tag}/sha256sum.txt"
    checksums = download_checksums(checksums_url)
    binaries_json = checksums_to_binaries_json(checksums)
    print(binaries_json)