code: def write_csv(fileobj, rows, encoding=ENCODING, dialect=DIALECT):
      
      csvwriter = csv.writer(fileobj, dialect=dialect)
      csv_writerows(csvwriter, rows, encoding)
docs: Dump rows to ``fileobj`` with the given ``encoding`` and CSV ``dialect``.