def format_labels_string(header, labels):
 if (header in SPACE_SEPARATED_LABEL_HEADERS):
  sep = ' '
 else:
  sep = ','
 return sep.join(labels)

def format_labels_string ( header , labels ) : if ( header in SPACE_SEPARATED_LABEL_HEADERS ) : sep = ' ' else : sep = ',' return sep . join ( labels )
formats labels for embedding into a message .