def _str_to_bool(text: str) ->bool:
    """
    Converts the text to a boolean value.
    """
    if text == '0':
        return False
    elif text == '1':
        return True
    else:
        raise ValueError('Cannot convert text "' + text + '" to bool.')
