def METHOD_NAME(value):
    if isinstance(value, str):
        return value
    elif isinstance(value, bool):
        return 'true' if value else 'false'
    elif isinstance(value, int) or isinstance(value, float):
        return str(value)
    elif isinstance(value, enum.Enum):
        return value.value
    else:
        logger.warning(f'selected {value=} is no scalar - matching will likely fail')
        return str(value)