public Optional<Dimension> getDimension(String dimension) {
            return Optional.ofNullable(dimensions.get(dimension));
        }
Returns the given dimension, or empty if none is present
vespajlib/src/main/java/com/yahoo/tensor/TensorType.java