def stop_instance(self, message, instance, clean_shutdown=True):
        do_cast = not message.need_response
        return self._call_compute_api_with_obj(message.ctxt, instance,
                                               'stop', do_cast=do_cast,
                                               clean_shutdown=clean_shutdown)
Wrap a function call in a sys.displayhook controller.
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/cells/messaging.py/_TargetedMessageMethods.stop_instance--crossover with--dataset/ETHPy150Open ipython/ipython-py3k/IPython/utils/doctestreload.py/dhook_wrap