def pid_tree(pid):
    children = child_pids(pid)
    return set(
        pid
        for child in children
        for pid in pid_tree(child)
    ) | children
Return a list of all descendant PIDs for the given PID.
dataset/ETHPy150Open Yelp/dumb-init/tests/lib/testing.py/pid_tree