def imagemagick(color_count, img, magick_command):
flags = ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>", str(color_count),<EOL>"<STR_LIT>", "<STR_LIT>"]<EOL>img += "<STR_LIT>"<EOL>return subprocess.check_output([*magick_command, img, *flags]).splitlines()<EOL>
Call Imagemagick to generate a scheme.