def node_return_stmt(self, node):
        assert len(node.children) == 2
        value = self.dispatch(node.children[1])
        if isinstance(value, list):
            jsvars = self.jsvars.copy()
            items = ', '.join([str(i) for i in value])
            jsvars.update(locals())
            return "return %(tuple)s([%(items)s])" % jsvars
        return "return %s" % value
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/translator_dict.py/Translator.node_return_stmt/original