def METHOD_NAME(parent_pid, sig=signal.SIGKILL):
    """
    kill all the child processes of the parent
    """
    try:
        parent = psutil.Process(parent_pid)
    except psutil.NoSuchProcess:
        return
    children = parent.children(recursive=True)
    for process in children:
        process.send_signal(sig)