def GetLabelsFromDict(metadata):
  labels = []
  for k, v in metadata.iteritems():
    labels.append('|%s:%s|' % (k, v))
  return ','.join(labels)
Converts a metadata dictionary to a string of labels.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/publisher.py/GetLabelsFromDict