code: def ParseOptions(cls, options, configuration_object):
      
      if not isinstance(configuration_object, tools.CLITool):
        raise errors.BadConfigObject(
            'Configuration object is not an instance of CLITool')
  
      preferred_year = cls._ParseNumericOption(options, 'preferred_year')
  
      process_archives = getattr(options, 'process_archives', False)
      process_compressed_streams = getattr(
          options, 'process_compressed_streams', True)
  
      setattr(configuration_object, '_preferred_year', preferred_year)
      setattr(configuration_object, '_process_archives', process_archives)
      setattr(
          configuration_object, '_process_compressed_streams',
          process_compressed_streams)
docs: Parses and validates options.
  
      Args:
        options (argparse.Namespace): parser options.
        configuration_object (CLITool): object to be configured by the argument
            helper.
  
      Raises:
        BadConfigObject: when the configuration object is of the wrong type.