def _get_processes():
<EOL>processes = subprocess.check_output(['<STR_LIT>', '<STR_LIT>', '<STR_LIT>'])<EOL>processes = processes.split('<STR_LIT:\n>')<EOL>processes = processes[<NUM_LIT:1>:] <EOL>process_list = []<EOL>for process in processes:<EOL><INDENT>if process == '<STR_LIT>':<EOL><INDENT>continue<EOL><DEDENT>pretuple = process.split('<STR_LIT:U+0020>', <NUM_LIT:1>)<EOL>process_list.append(ProcessTuple(pretuple[<NUM_LIT:0>], pretuple[<NUM_LIT:1>]))<EOL><DEDENT>return process_list<EOL>
returns a list of process tuples (pid, cmd)
This only applies only for local scheduler as it uses the ps command
and assumes the topology will be running on different processes on same machine