public String getEnumExpression(String expression) {
        // Split the expression into enum name and enum constant name
        String enumName = expression.substring(0, expression.indexOf('.'));
        String enumConstant = expression.substring(expression.indexOf('.') + 1);

        // Return enum name and constant name separated by underscore
        return enumName + "_" + enumConstant;
    }
Converts a Python expression that refers to an enum constant to a constant
reference.

@param expression the expression to convert
@return a string containing the enum name and constant name separated by
        underscore.
code-generation/language-python/src/main/java/org/apache/plc4x/language/python/PythonLanguageTemplateHelper.java