code: def write_dicts_to_csv(self, dicts):
          
          csv_headers = sorted(dicts[0].keys())
          with open(self.path, "w") as out_file:  # write to file
              dict_writer = csv.DictWriter(
                  out_file, csv_headers, delimiter=",", quotechar="\""
              )
              dict_writer.writeheader()
              dict_writer.writerows(dicts)
docs: Saves .csv file with posts data
  
          :param dicts: Dictionaries with same values