code: def _deduce_security(kwargs) -> nmcli.SECURITY_TYPES:
      
      # Security should be one of our valid strings
      sec_translation = {
          'wpa-psk': nmcli.SECURITY_TYPES.WPA_PSK,
          'none': nmcli.SECURITY_TYPES.NONE,
          'wpa-eap': nmcli.SECURITY_TYPES.WPA_EAP,
      }
      if not kwargs.get('securityType'):
          if kwargs.get('psk') and kwargs.get('eapConfig'):
              raise ConfigureArgsError(
                  'Cannot deduce security type: psk and eap both passed')
          elif kwargs.get('psk'):
              kwargs['securityType'] = 'wpa-psk'
          elif kwargs.get('eapConfig'):
              kwargs['securityType'] = 'wpa-eap'
          else:
              kwargs['securityType'] = 'none'
      try:
          return sec_translation[kwargs['securityType']]
      except KeyError:
          raise ConfigureArgsError('securityType must be one of {}'
                                   .format(','.join(sec_translation.keys())))
docs: Make sure that the security_type is known, or throw.