code: def teecsv(table, source=None, encoding=None, errors='strict', write_header=True,
             **csvargs):
      
  
      source = write_source_from_arg(source)
      csvargs.setdefault('dialect', 'excel')
      return teecsv_impl(table, source=source, encoding=encoding,
                         errors=errors, write_header=write_header,
                         **csvargs)
docs: Returns a table that writes rows to a CSV file as they are iterated over.