You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: processor_cosmosdb.go
    path of file: ./repos/benthos/internal/impl/azure
    
    the code of the file until where you have to start completion: package azure

import (
	"context"
	"fmt"

	"github.com/Azure/azure-sdk-for-go/sdk/data/azcosmos"

	"github.com/benthosdev/benthos/v4/internal/impl/azure/cosmosdb"
	"github.com/benthosdev/benthos/v4/public/service"
)

const (
	cdbpFieldEnableContentResponseOnWrite = "enable_content_response_on_write"
)

func cosmosDBProcessorConfig() *service.ConfigSpec {
	return service.NewConfigSpec().
		// Stable(). TODO
		Categories("Azure").
		Version("v4.25.0").
		Summary("Creates or updates mes
    
func (c *cosmosDBProcessor) ProcessBatch(ctx context.Context, batch service.MessageBatch) ([]service.MessageBatch, error) {
	resp, err := cosmosdb.ExecMessageBatch(ctx, batch, c.containerClient, c.CRUDConfig, c.enableContentResponseOnWrite)
	if err != nil {
		return nil, fmt.Errorf("failed to execute transactional batch: %s", err)
	}

	c.logger.Debugf("Transactional batch executed successfully. ActivityID %s consumed %f RU", resp.ActivityID, resp.RequestCharge)

	batch = batch.Copy()
	for idx, opRes := range resp.OperationResults {
		p := batch[idx]
		if resp.Success {
			if c.Operation == cosmosdb.OperationRead || c.enableContentResponseOnWrite {
				p.SetBytes(opRes.ResourceBody)
			}
		} else {
			p.SetError(fmt.Errorf("rejected batch element %d with status: %d", idx, opRes.StatusCode))
		}

		p.MetaSetMut("activity_id", resp.ActivityID)
		p.MetaSetMut("request_charge", opRes.RequestCharge)
	}

	return []service.MessageBatch{batch}, nil
}