<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def to_bool(text):
    '''
    Convert the string name of a boolean to that boolean value.
    '''
    downcased_text = six.text_type(text).strip().lower()

    if downcased_text == 'false':
        return False
    elif downcased_text == 'true':
        return True
    return text