def validate_custom_vector_mappings_object(mappings_object: Dict):
    """Validates the custom vector mappings object
    Args:
        mappings_object:
    Returns:
        The original object, if it passes validation
    Raises InvalidArgError if the object is badly formatted
    Example custom vector mappings must look exactly like this:
    "my_custom_vector_field": {
        "type": "custom_vector"
    }
    """
    try:
        jsonschema.validate(instance=mappings_object, schema=custom_vector_mappings_schema)
    except jsonschema.ValidationError as e:
        raise InvalidArgError(
            f"Error validating custom vector mappings object. Reason: \n{str(e)}"
            f"\n Read about the mappings object here: `{marqo_docs.mappings()}`"
        )

    return mappings_object
Validates the custom vector mappings object
    Args:
        mappings_object:
    Returns:
        The original object, if it passes validation
    Raises InvalidArgError if the object is badly formatted
    Example custom vector mappings must look exactly like this:
    "my_custom_vector_field": {
        "type": "custom_vector"
    }
    
src/marqo/tensor_search/validation.py