<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def html_to_tags(code):
 """ Convert HTML code to tags. ``code`` is a string containing HTML code. The return value is a list of corresponding instances of ``TagBase``. """

    code = ('<div>' + code + '</div>').encode('utf8')
    el = ET.fromstring(code)
    return [tag_from_element(c) for c in el]