def METHOD_NAME(level):
    """Get logger level, mapping the string into enum constant
    Returns:
        int: Logger level (10 DEBUG - 20 INFO - 30 WARNING - 40 ERROR - 50 CRITICAL)
    Raises:
        ValueError if level is not in ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']
    """
    if level not in ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']:
        raise ValueError('LOGGER level must be one of the following values: DEBUG, INFO, WARNING, ERROR, CRITICAL')
    level_mapping = {
        'DEBUG': logging.DEBUG,
        'INFO': logging.INFO,
        'WARNING': logging.WARNING,
        'ERROR': logging.ERROR,
        'CRITICAL': logging.CRITICAL
    }
    return level_mapping[level]