<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def separator(self, menu=None):
 """Add a separator"""

        self.gui.get_menu(menu or self.menu).addSeparator()