private static Pair<String, String> readRawElement(TokenBuffer buffer, TensorType type, TensorType originalType) {
        String dimension = buffer.currentName();
        if (type.dimension(dimension).isEmpty() && originalType.dimension(dimension).isPresent()) {
            throw new IllegalArgumentException("Indexed dimension address '" + dimension +
                    "' should not be specified in remove update");
        }
        String label = buffer.currentText();
        return new Pair<>(dimension, label);
    }
Reads the first raw tensor address from the given buffer and resolves and returns the tensor type and tensor address based on this.
The resulting tensor type contains a subset or all of the dimensions from the given sparseType.
document/src/main/java/com/yahoo/document/json/readers/TensorRemoveUpdateReader.java