def unplug_container(area, container):
    root = area.centralWidget()
    if root is None:
        return False
    if root is container:
        root.hide()
        root.setParent(None)
        area.setCentralWidget(None)
        QApplication.sendEvent(area, QEvent(DockAreaContentsChanged))
        return True
    success, replace = _unplug(root, container)
    if not success:
        return False
    if replace is not None:
        area.setCentralWidget(replace)
    QApplication.sendEvent(area, QEvent(DockAreaContentsChanged))
    return True
Ensure the cloudwatch alarm exists.
dataset/ETHPy150Open nucleic/enaml/enaml/qt/docking/layout_handling.py/unplug_container--crossover with--dataset/ETHPy150Open saltstack/salt/salt/states/boto_cloudwatch_alarm.py/present