def validate_coupling_of_mappings_and_doc(doc: Dict, mappings: Dict, multimodal_sub_fields: List):
    """Validate the coupling of mappings object and doc"""
    if not mappings:
        return

    multimodal_fields = [field_name for field_name, configuration in mappings.items()
                         if configuration["type"] == enums.MappingsObjectType.multimodal_combination]
    custom_vector_fields = [field_name for field_name, configuration in mappings.items()
                            if configuration["type"] == enums.MappingsObjectType.custom_vector]

    if multimodal_fields:
        _validate_conflicts_fields(multimodal_fields, doc)
        _validate_multimodal_sub_fields_content(doc, multimodal_sub_fields)
Validate the coupling of mappings object and doc
src/marqo/core/unstructured_vespa_index/unstructured_validation.py