static String toStandardString(Tensor tensor, boolean withType, boolean shortForms, long maxCells) {
        return (withType ? tensor.type() + ":" : "") + valueToString(tensor, shortForms, maxCells);
    }
Call this from toString in implementations to return this tensor on the
<a href="https://docs.vespa.ai/en/reference/tensor.html#tensor-literal-form">tensor literal form</a>.
(toString cannot be a default method because default methods cannot override super methods).

@param tensor the tensor to return the standard string format of
@param withType whether the type should be prepended to the content
@param maxCells the max number of cells to output, after which just , "..." is output to represent the rest
                of the cells
@return the tensor on the standard string format
vespajlib/src/main/java/com/yahoo/tensor/Tensor.java