code: def read_writer_config(config_files, loader=UnsafeLoader):
      
  
      conf = {}
      LOG.debug('Reading %s', str(config_files))
      for config_file in config_files:
          with open(config_file) as fd:
              conf.update(yaml.load(fd.read(), Loader=loader))
  
      try:
          writer_info = conf['writer']
      except KeyError:
          raise KeyError(
              "Malformed config file {}: missing writer 'writer'".format(
                  config_files))
      writer_info['config_files'] = config_files
      return writer_info
docs: Read the writer `config_files` and return the info extracted.