def create_assign_stmt(self, lhs='lhs', rhs='rhs', subst_lhs=None, subst_rhs=None):
        stmt = self.driver.parse_string(
            locals() % "%(lhs)s = %(rhs)s\n",
            True,
        ).children[0]
        # Node(simple_stmt, [Node(expr_stmt, [Leaf(1, 'lhs'), Leaf(22, '='), Leaf(1, 'rhs')]), Leaf(4, '\n')])
        if subst_lhs is not None:
            children = stmt.children[0].children
            if isinstance(subst_lhs, basestring):
                children[0].value = subst_lhs
            else:
                children[0] = subst_lhs
        if subst_rhs is not None:
            children = stmt.children[0].children
            if isinstance(subst_rhs, basestring):
                children[2].value = subst_rhs
            else:
                children[2] = subst_rhs
        return stmt
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/translator_dict.py/Translator.create_assign_stmt/swapped operands of `%`