def has_im():
if shutil.which("<STR_LIT>"):<EOL><INDENT>return ["<STR_LIT>", "<STR_LIT>"]<EOL><DEDENT>if shutil.which("<STR_LIT>"):<EOL><INDENT>return ["<STR_LIT>"]<EOL><DEDENT>logging.error("<STR_LIT>")<EOL>logging.error("<STR_LIT>")<EOL>sys.exit(<NUM_LIT:1>)<EOL>
Check to see if the user has im installed.