def create_getindex_stmt(self, base='base', idx='idx', subst_base=None, subst_idx=None):
        stmt = self.driver.parse_string(
            locals() % "%(base)s[%(idx)s]\n",
            True,
        ).children[0]
        # driver.parse_string("base[idx]\n", True).children[0]
        # Node(simple_stmt, [Node(power, [Leaf(1, 'base'), Node(trailer, [Leaf(9, '['), Leaf(1, 'idx'), Leaf(10, ']')])]), Leaf(4, '\n')]), Leaf(0, '')
        if subst_base is not None:
            children = stmt.children[0].children
            if isinstance(subst_base, basestring):
                children[0].value = subst_base
            else:
                children[0] = subst_base
        if subst_idx is not None:
            children = stmt.children[0].children[1].children
            if isinstance(subst_idx, basestring):
                children[1].value = subst_idx
            else:
                children[1] = subst_idx
        return stmt
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/translator_dict.py/Translator.create_getindex_stmt/swapped operands of `%`