<s> import requests <EOL> from templates . text import TextTemplate <EOL> def process ( input , entities = None ) : <EOL> output = { } <EOL> try : <EOL> r = requests . get ( '<STR_LIT>' ) <EOL> data = r . json ( ) <EOL> output [ '<STR_LIT:input>' ] = input <EOL> output [ '<STR_LIT>' ] = TextTemplate ( data [ '<STR_LIT>' ] ) . get_message ( ) <EOL> output [ '<STR_LIT:success>' ] = True <EOL> except : <EOL> output [ '<STR_LIT:success>' ] = False <EOL> return output </s>
