def METHOD_NAME(qtbot, tmp_path):
    datadict = _make_testdata()
    datadict_to_hdf5(datadict, str(tmp_path), 'data')
    appManager = AppManager()
    appManager.show()
    qtbot.waitExposed(appManager)
    qtbot.addWidget(appManager)
    assert appManager.launchApp(0, MODULE, FUNC, str(tmp_path), 'data')
    assert 0 in appManager.processes
    newProcess = appManager.processes[0]['process']
    pid = newProcess.processId()
    assert psutil.pid_exists(pid)
    psutilProcess = psutil.Process(pid)
    psutilProcess.terminate()
    qtsleep(1)
    assert 0 not in appManager.processes
    assert not psutil.pid_exists(pid)
    ret = appManager.close()
    assert ret