private String toLengthInBitsVariableExpression(TypeReference typeReference, boolean serialize, Tracer tracer) {
        tracer = tracer.dive("lengthInBits");
        return tracer + (serialize ? getCastExpressionForTypeReference(typeReference) + "(" : "") + "length_in_bits" + (serialize ? "())" : "()");
    }
Returns the expression to access the length in bits of the given data.
If the data is serialized, this will be a cast expression.
Otherwise it will be just 'length_in_bits'.
@param typeReference the type reference of the data
@param serialize whether the data is serialized
@param tracer the tracer for this expression
@return the expression to access the length in bits of the given data
code-generation/language-python/src/main/java/org/apache/plc4x/language/python/PythonLanguageTemplateHelper.java