static OrderedTensorType typeFrom(Onnx.TensorProto tensor) {
        var elemType = Onnx.TensorProto.DataType.forNumber(tensor.getDataType());
        return OrderedTensorType.fromDimensionList(toValueType(elemType), tensor.getDimsList());
    }
Converts and verifies ONNX tensor types into Vespa tensor types.

@author lesters
model-integration/src/main/java/ai/vespa/rankingexpression/importer/onnx/TypeConverter.java