private static void validateName(Map<String, TensorType> types, String name, String type) {
        if (!types.containsKey(name)) {
            throw new IllegalArgumentException("Model does not contain required " + type + ": '" + name + "'. " +
                    "Model contains: " + String.join(",", types.keySet()));
        }
    }
Validates that the given tensor type is a 1-d mapped tensor.

@param target the type to validate
@return true if the type is a 1-d mapped tensor
model-integration/src/main/java/ai/vespa/embedding/SpladeEmbedder.java