// create a batch object batch := client.Batch() // add two key-value pairs to the batch batch.CPut("key1", "value1", nil) batch.CPut("key2", "value2", &client.ConditionalPutOptions{ ExpValue: nil, // expect key2 to not exist }) // execute the batch write if err := db.Run(ctx, batch); err != nil { log.Fatal(err) }In this example, we create a new batch object using the `Batch` method provided by the `client` object. We then add two key-value pairs to the batch using the `CPut` method, which specifies the key, value, and optional conditional options for each pair. Finally, we execute the batch write using the `Run` method of the `db` object. If any of the conditional checks fail, the entire batch write will fail and none of the key-value pairs will be written to the cluster. Overall, the Batch CPut function is a powerful tool for optimizing data writes to a CockroachDB cluster, and the CockroachDB Go library provides extensive support for using it in your applications.