<s> from __future__ import print_function <EOL> warned_of_error = False <EOL> def create_cloud ( oname , words , maxsize = <NUM_LIT> , fontname = '<STR_LIT>' ) : <EOL> '''<STR_LIT>''' <EOL> try : <EOL> from pytagcloud import create_tag_image , make_tags <EOL> except ImportError : <EOL> if not warned_of_error : <EOL> print ( "<STR_LIT>" ) <EOL> return <EOL> words = [ ( w , int ( v * <NUM_LIT> ) ) for v , w in words ] <EOL> tags = make_tags ( words , maxsize = maxsize ) <EOL> create_tag_image ( tags , oname , size = ( <NUM_LIT> , <NUM_LIT> ) , fontname = fontname ) </s>
