def normalize_label(label):
  """Normalizes a label to be used for data sent to performance dashboard.

  This replaces:
    '/' -> '-', as slashes are used to denote test/sub-test relation.
    ' ' -> '_', as there is a convention of not using spaces in test names.

  Returns:
    Normalized label.
  """
  return label.replace('/', '-').replace(' ', '_')