<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_boolean(value):
 """ Check if the value represents a boolean. 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 Traceback (most recent call last):
 VdtTypeError: the value "" is of the wrong type. Traceback (most recent call last):
 VdtTypeError: the value "up" is of the wrong type. """

    if isinstance(value, string_types):
        try:
            return bool_dict[value.lower()]
        except KeyError:
            raise VdtTypeError(value)
    # we do an equality test rather than an identity test
    # this ensures Python 2.2 compatibilty
    # and allows 0 and 1 to represent True and False
    if value == False:
        return False
    elif value == True:
        return True
    else:
        raise VdtTypeError(value)