def get_menu_dict(self):
        self.translate()
        if self.sub_menus:
            self.params['children'] = []
            for sub_menu in self.sub_menus:
                sub_menu_dict = sub_menu.get_menu_dict()
                self.params['children'].append(sub_menu_dict)
        else:
            if self.params in 'children':
                self.params.pop('children')
        return self.params
dataset/ETHPy150Open Robot-Will/Stino/stino/st_menu.py/Menu.get_menu_dict/swapped operands of `in`