private boolean matches(PartialAddress subspaceAddress,
                            TensorAddress address, TensorType type) {
        for (int i = 0; i < subspaceAddress.size(); i++) {
            Label label = address.objectLabel(type.indexOfDimension(subspaceAddress.dimension(i)).get());
            if (!label.isEqualTo(subspaceAddress.objectLabel(i)))
                return false;
        }
        return true;
    }
Creates a value function

@param argument the tensor to return a cell value from
@param subspaceAddress a description of the address of the cell to return the value of. This is not a TensorAddress
                       because those require a type, but a type is not resolved until this is evaluated
vespajlib/src/main/java/com/yahoo/tensor/functions/Slice.java