def is_whitespace(character):
    """
    Function to determine whether a given character is a whitespace character.
    :param character: The character to be checked
    :return: Whether the character is a whitespace character or not as a boolean value
    """
    if character == ' ' or character == '\n' or character == '\t' or character == '\r':
        return True
    else:
        return False