def visit_figure(self, node):
        # move up the ids of child img
        for child in node:
            if isinstance(child, nodes.image) and 'ids' in child:
                node['ids'].extend(child['ids'])
                child['ids'] = []

        self.default_visit(node)
dataset/ETHPy150Open mgaitan/waliki/waliki/rst2html5.py/HTML5Translator.visit_figure/original