def getLabelString(dictionary):
 for key in dictionary:
  labelIndex = key.find('label')
  if (labelIndex >= 0):
   return dictionary[key]
 return ''

def getLabelString ( dictionary ) : for key in dictionary : labelIndex = key . find ( 'label' ) if ( labelIndex >= 0 ) : return dictionary [ key ] return ''
get the label string for the dictionary .