def check_pids_exist_then_sleep(arg):
time, pids = arg<EOL>sleep(time)<EOL>res = True<EOL>for p in pids:<EOL><INDENT>res &= psutil.pid_exists(p)<EOL><DEDENT>return res<EOL>
Sleep for some time before returning
    and check if all the passed pid exist