<s> import sys <EOL> if sys . version_info < ( <NUM_LIT:3> , <NUM_LIT:0> ) : <EOL> from urllib2 import urlopen <EOL> else : <EOL> from urllib . request import urlopen <EOL> import io <EOL> from colorthief import ColorThief <EOL> fd = urlopen ( '<STR_LIT>' ) <EOL> f = io . BytesIO ( fd . read ( ) ) <EOL> color_thief = ColorThief ( f ) <EOL> print ( color_thief . get_color ( quality = <NUM_LIT:1> ) ) <EOL> print ( color_thief . get_palette ( quality = <NUM_LIT:1> ) ) </s>
