def ValidateMeasurementsFlag(options_list):
  for option in options_list:
    if option not in MEASUREMENTS_ALL:
      raise flags_validators.Error(
          '%s: Invalid value for --%s' % (option, MEASUREMENTS_FLAG_NAME))
    if option == MEASUREMENTS_NONE and len(options_list) != 1:
      raise flags_validators.Error(
          '%s: Cannot combine with other --%s options' % (
              option, MEASUREMENTS_FLAG_NAME))
  return True
Returns the amount of unread messages between two users
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/timing_util.py/ValidateMeasurementsFlag--crossover with--dataset/ETHPy150Open clione/django-kanban/src/core/userena/contrib/umessages/managers.py/MessageRecipientManager.count_unread_messages_between