<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_element(self, e):
 """Remove element `e` from model """

        
        if e.label is not None: self.elementdict.pop(e.label)
        self.elementlist.remove(e)