private static TensorAddress readTensorAddress(TokenBuffer buffer, TensorType type, TensorType originalType) {
        TensorAddress.Builder builder = new TensorAddress.Builder(type);
        expectObjectStart(buffer.current());
        int initNesting = buffer.nesting();
        for (buffer.next(); buffer.nesting() >= initNesting; buffer.next()) {
            var elem = readRawElement(buffer, type, originalType);
            builder.add(elem.getFirst(), elem.getSecond());
        }
        expectObjectEnd(buffer.current());
        return builder.build();
    }
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