def METHOD_NAME(value, name):
    '''
    :param bool value: the value to validate.
    :param str name: the name of the entity being checked.
    :raises TypeError: if the provided value is not a boolean.
    '''
    if not isinstance(value, bool):
        raise TypeError(
            f"The {name} should be a boolean but found "
            f"'{type(value).__name__}'.")