def validate_multimodal_combination_mappings_object(mappings_object: Dict):
    """Validates the multimodal mappings object

    Args:
        multimodal_mappings:

    Returns:
        The original object, if it passes validation
    Raises InvalidArgError if the object is badly formatted
    """
    try:
        jsonschema.validate(instance=mappings_object, schema=multimodal_combination_mappings_schema)
    except jsonschema.ValidationError as e:
        raise InvalidArgError(
            f"Error validating multimodal combination mappings object. Reason: \n{str(e)}"
            f"\n Read about the mappings object here: `{marqo_docs.mappings()}`"
        )

    # TODO: compare, this might be wrong for v2.
    # TODO: Move this validation into schema in mappings_object
    for child_field, weight in mappings_object["weights"].items():
        # TODO: We may need to validate field name of child field.
        if type(child_field) not in tensor_search_constants.ALLOWED_MULTIMODAL_FIELD_TYPES:
            raise InvalidArgError(
                f"The multimodal_combination mapping `{mappings_object}` has an invalid child_field `{child_field}` of type `{type(child_field).__name__}`."
                f"In multimodal_combination fields, it must be a string."
                f"Please check `{marqo_docs.multimodal_combination_object()}` for more info."
            )

        if not isinstance(weight, (float, int)):
            raise InvalidArgError(
                f"The multimodal_combination mapping `{mappings_object}` has an invalid weight `{weight}` of type `{type(weight).__name__}`."
                f"In multimodal_combination fields, weight must be an int or float."
                f"Please check `{marqo_docs.multimodal_combination_object()}` for more info."
            )

    return mappings_object
Validates the multimodal mappings object

    Args:
        multimodal_mappings:

    Returns:
        The original object, if it passes validation
    Raises InvalidArgError if the object is badly formatted
    
src/marqo/tensor_search/validation.py