def clear(self):
if self._is_item:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>self.node_stack = []<EOL>self._data = []<EOL>
Clear outs the list node.

Raises:
    TypeError: If it's called on a ListNode item (intstead of ListNode's itself)