from typing import Dict
import uuid


def transform_cosmosdb_cors_policy(database_account: Dict) -> Dict:
    """
    Transform CosmosDB Cors Policy response for neo4j ingestion.
    """
    for policy in database_account['cors']:
        if 'cors_policy_unique_id' not in policy:
            policy['cors_policy_unique_id'] = str(uuid.uuid4())

    return database_account