public String getEnumDataWriterCall(EnumTypeReference typeReference, String fieldName, String attributeName) {
        if (!typeReference.isEnumTypeReference()) {
            throw new IllegalArgumentException("this method should only be called for enum types");
        }
        final String languageTypeName = getLanguageTypeNameForTypeReference(typeReference);
        SimpleTypeReference outputTypeReference;
        if ("value".equals(attributeName)) {
            outputTypeReference = getEnumBaseTypeReference(typeReference);
        } else {
            outputTypeReference = getEnumFieldSimpleTypeReference(typeReference.asNonSimpleTypeReference().orElseThrow(), attributeName);
        }
        return getDataWriterCall(outputTypeReference, fieldName);
    }
Returns the name of the Python data writer method that should be used to write a value of the given enum type.

<p>
This method is used to generate code for converting a type reference to a PLC4Py type name.

@param typeReference the enum type reference to get the PLC4Py type name for
@param fieldName the name of the field to write
@param attributeName the name of the enum attribute to write, defaults to "value"
@return the PLC4Py type name or an empty string if the type reference is not supported
code-generation/language-python/src/main/java/org/apache/plc4x/language/python/PythonLanguageTemplateHelper.java