def undeploy_vm(context, vm):
    monitor = context.getMonitoringService().getVirtualMachineMonitor()
    print "Uneploying virtual machine %s... This may take some time." \
            % vm.getInternalName()
    vm.undeploy()
    monitor.awaitCompletionUndeploy(vm)
    return refresh_vm(context, vm)
Run an object returned from search through a presenter.
dataset/ETHPy150Open nacx/kahuna/kahuna/plugins/virtualmachine/helper.py/undeploy_vm--crossover with--dataset/ETHPy150Open hypothesis/h/h/api/views.py/_present_searchdict