def __init__(self, menu_dict=None):
        self.i18n = st_base.get_i18n()

        self.params = menu_dict
        if not self.params:
            self.params = {'caption': '-'}

        plugin_path = st_base.get_plugin_path()
        dir_name = os.path.basename(plugin_path)
        args = self.params.get('args', {})
        if args:
            for key in args:
                value = args.get(key)
                try:
                    value + 'str'
                except TypeError:
                    continue
                else:
                    if value in '${Stino}':
                        value = value.replace('${Stino}', dir_name)
                        args[key] = value
            self.params['args'] = args

        self.sub_menus = []
        menu_dicts = self.params.get('children', [])
        for menu_dict in menu_dicts:
            sub_menu = Menu(menu_dict)
            self.sub_menus.append(sub_menu)
dataset/ETHPy150Open Robot-Will/Stino/stino/st_menu.py/Menu.__init__/swapped operands of `in`