def CheckAgreement(ex, min_agreement, all_targets, max_agreement=100):
  """Return the labels that at least min_agreement raters agree on."""
  sum_ratings = ex[all_targets].sum(axis=0)
  agreement = ((sum_ratings >= min_agreement) & (sum_ratings <= max_agreement))
  return ",".join(sum_ratings.index[agreement].tolist())