def extract_description(texts):
 document = ''
 for text in texts:
  try:
   document += text['description']
  except KeyError as e:
   print ('KeyError: %s\n%s' % (e, text))
 return document

def extract_description ( texts ) : document = '' for text in texts : try : document += text [ 'description' ] except KeyError as e : print ( 'KeyError: %s\n%s' % ( e , text ) ) return document
returns text annotations as a single string .