def check_pid(pid, debug):
try:<EOL><INDENT>os.kill(pid, <NUM_LIT:0>)<EOL>if debug > <NUM_LIT:1>:<EOL><INDENT>print("<STR_LIT>")<EOL><DEDENT>return True<EOL><DEDENT>except OSError:<EOL><INDENT>if debug > <NUM_LIT:1>:<EOL><INDENT>print("<STR_LIT>")<EOL><DEDENT>return False<EOL><DEDENT>
This function will check whether a PID is currently running