private static OrderedTensorType fromDimensionList(TensorType.Value valueType, List<Long> dimensions, String dimensionPrefix) {
        OrderedTensorType.Builder builder = new OrderedTensorType.Builder(valueType);
        for (int i = 0; i < dimensions.size(); ++ i) {
            String dimensionName = dimensionPrefix + i;
            Long dimSize = dimensions.get(i);
            if (dimSize >= 0) {
                builder.add(TensorType.Dimension.indexed(dimensionName, dimSize));
            } else {
                builder.add(TensorType.Dimension.indexed(dimensionName));
            }
        }
        return builder.build();
    }
Creates an instance from the string representation of this: A standard tensor type string
where dimensions are listed in the order of this rather than the natural order of their names.
model-integration/src/main/java/ai/vespa/rankingexpression/importer/OrderedTensorType.java