private List<String> findDimensions(List<TensorType.Dimension> dims, Predicate<TensorType.Dimension> pred) {
        return dims.stream().filter(pred).map(TensorType.Dimension::name).toList();
    }
Returns the subset of the given address which is present in the subspace type
vespajlib/src/main/java/com/yahoo/tensor/functions/Slice.java