private TensorType typeFrom(String argument, boolean mappedTensors) {
        Tensor tensor = Tensor.from(argument); // Create tensor just to get the dimensions
        if (mappedTensors) {
            return tensor.type(); // implicit type is mapped by default
        }
        else { // convert to indexed
            TensorType.Builder builder = new TensorType.Builder();
            for (TensorType.Dimension dimension : tensor.type().dimensions())
                builder.indexed(dimension.name());
            return builder.build();
        }
    }
Create a tensor type from a tensor string which may or may not contain type info
searchlib/src/test/java/com/yahoo/searchlib/rankingexpression/evaluation/EvaluationTester.java