def get_pid(name):
if not shutil.which("<STR_LIT>"):<EOL><INDENT>return False<EOL><DEDENT>try:<EOL><INDENT>subprocess.check_output(["<STR_LIT>", "<STR_LIT>", name])<EOL><DEDENT>except subprocess.CalledProcessError:<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Check if process is running by name.