@Override
    public TensorFunction<NAMETYPE> withArguments(List<TensorFunction<NAMETYPE>> arguments) {
        if ( arguments.size() != 1)
            throw new IllegalArgumentException("Rename must have 1 argument, got " + arguments.size());
        return new Rename<>(arguments.get(0), fromDimensions, toDimensions);
    }
The <i>rename</i> tensor function returns a tensor where some dimensions are assigned new names.

@author bratseth
vespajlib/src/main/java/com/yahoo/tensor/functions/Rename.java