def tree_replace_stmt(self, dst, stmt_node):
        if isinstance(stmt_node.children[0], Leaf):
            if stmt_node.children[0].value == 'pass':
                return
        else:
            node = stmt_node.children[0]
            if type_repr(node.type) == 'expr_stmt':
                if isinstance(node.children[0], Leaf) and \
                   isinstance(node.children[1], Leaf) and \
                   node.children[1].value == '=':
                    for child in dst.children:
                        if isinstance(child, Node) and \
                           type_repr(child.type) == 'simple_stmt' and \
                           isinstance(child.children[0], Node) and \
                           type_repr(child.children[0].type) == 'expr_stmt':
                            dst_node = child.children[0]
                            if isinstance(dst_node.children[0], Leaf) and \
                               isinstance(dst_node.children[1], Leaf) and \
                               dst_node.children[1].value == '=' and \
                               dst_node.children[0].value == node.children[0].value:
                                dst_node.children = node.children
                                dst_node.changed()
                                return
                    dst.append_child(stmt_node)
                    return
        raise self.TranslationError(
            stmt_node % "Cannot replace or merge statement %r"
        )
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/translator_dict.py/Translator.tree_replace_stmt/swapped operands of `%`