code: def _eap_check_no_extra_args(
          config: Dict[str, Any], options: Any):
      # options is an Any because the type annotation for EAP_CONFIG_SHAPE itself
      # can’t quite express the type properly because of the inference from the
      # dict annotation.
      
      arg_names = [k for k in config.keys() if k != 'eapType']
      valid_names = [o['name'] for o in options]
      for an in arg_names:
          if an not in valid_names:
              raise ConfigureArgsError(
                  'Option {} is not valid for EAP method {}'
                  .format(an, config['eapType']))
docs: Check for args that are not required for this method (to aid debugging)
      ``config`` should be the user config.
      ``options`` should be the options submember for the eap method.
  
      Before this method is called, the validity of the 'eapType' key should be
      established.