def METHOD_NAME(args, config, part):
    # Generate partition table binary
    if not args.no_verify:
        status("Verifying partition table...")
        config.verify(args.secure)
    return config.partitions.to_binary(config.devices)