<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_valid_element(element):
 """ Check that the element can be manipulated by HaTeMiLe. :param element: The element :type element: hatemile.util.html.htmldomelement.HTMLDOMElement :return: True if element can be manipulated or False if element cannot be manipulated. :rtype: bool """


        if element.has_attribute(CommonFunctions.DATA_IGNORE):
            return False
        else:
            parent_element = element.get_parent_element()
            if parent_element is not None:
                tag_name = parent_element.get_tag_name()
                if (tag_name != 'BODY') and (tag_name != 'HTML'):
                    return CommonFunctions.is_valid_element(parent_element)
                return True
            return True