def kill_hard(process):
    with suppress(ProcessLookupError):
        if not is_windows():
            process.send_signal(SIGINFO)  # this assumes a debug handler has been registered for SIGINFO
            time.sleep(1)  # give the logger a chance to write out debug info
        process.kill()

    stdout, stderr = process.communicate()
    return process.returncode, stdout, stderr
Kill the specified process immediately using SIGKILL.
dataset/ETHPy150Open box/ClusterRunner/app/util/process_utils.py/kill_hard