<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def read(variable):
 """ read an element from LiFePO4wered. :param variable: the element to read. :type variable: Lifepo4weredEnum :return: the value of the element :rtype: int :raises ValueError: if parameter value is not a member of Lifepo4weredEnum """

    if variable not in variablesEnum:
        raise ValueError('Use a lifepo4wered enum element as read parameter.')
    
    if canRead(variable):
        return lifepo4weredSO.read_lifepo4wered(variable.value)
    else:
        raise RuntimeError('You cannot read {0} value, just write it'.format(variable.name))