def _get_magic_menu(self,menuidentifier, menulabel=None):
menu = self._magic_menu_dict.get(menuidentifier,None)<EOL>if not menu :<EOL><INDENT>if not menulabel:<EOL><INDENT>menulabel = re.sub("<STR_LIT>","<STR_LIT>",menuidentifier)<EOL><DEDENT>menu = QtGui.QMenu(menulabel,self.magic_menu)<EOL>self._magic_menu_dict[menuidentifier]=menu<EOL>self.magic_menu.insertMenu(self.magic_menu_separator,menu)<EOL><DEDENT>return menu<EOL>
return a submagic menu by name, and create it if needed

        parameters:
        -----------

        menulabel : str
            Label for the menu

        Will infere the menu name from the identifier at creation if menulabel not given.
        To do so you have too give menuidentifier as a CamelCassedString