docs: def _determine_toggles(payload, toggles):
      '''
      BigIP can't make up its mind if it likes yes / no or true or false.
      Figure out what it likes to hear without confusing the user.
      '''
  
      for toggle, definition in six.iteritems(toggles):
          #did the user specify anything?
          if definition['value'] is not None:
              #test for yes_no toggle
              if (definition['value'] is True or definition['value'] == 'yes') and definition['type'] == 'yes_no':
                  payload[toggle] = 'yes'
              elif (definition['value'] is False or definition['value'] == 'no') and definition['type'] == 'yes_no':
                  payload[toggle] = 'no'
  
              #test for true_false toggle
              if (definition['value'] is True or definition['value'] == 'yes') and definition['type'] == 'true_false':
                  payload[toggle] = True
              elif (definition['value'] is False or definition['value'] == 'no') and definition['type'] == 'true_false':
                  payload[toggle] = False
  
      return payload