private String toLengthVariableExpression(Field field, VariableLiteral variableLiteral, boolean serialize, Tracer tracer) {
        tracer = tracer.dive("length");
        return tracer + (serialize ? ("len(self." + camelCaseToSnakeCase(variableLiteral.getName()) + ")") : ("(" + variableLiteral.getName() + ")"));
    }
Returns an expression that accesses the length of the given variable literal in the given type reference.
If the variable literal has a child, this expression will be a method call of the form
<code>self.length(&lt;child expression&gt;)</code>.
Otherwise, this expression will be simply <code>self.length</code>.
@param field the field of the given type reference
@param variableLiteral the variable literal to access
@param serialize whether the data is serialized
@param tracer the tracer for this expression
@return the expression to access the length of the given variable literal in the given type reference
code-generation/language-python/src/main/java/org/apache/plc4x/language/python/PythonLanguageTemplateHelper.java