class_docstr: A wrapper around Python 3's builtin :class:`csv.DictWriter`.
class_docstr_tok: ["A","wrapper","around","Python","3","'s","builtin",":","class",":","`","csv.DictWriter","`","."]
code: def __init__(self, f, fieldnames, line_numbers=False, **kwargs):
      self.row_count = 0
      self.line_numbers = line_numbers
  
      if "lineterminator" not in kwargs:
          kwargs["lineterminator"] = "\n"
  
      if self.line_numbers:
          fieldnames.insert(0, "line_number")
  
      csv.DictWriter.__init__(self, f, fieldnames, **kwargs)
  
imports: import csv
  import warnings
  from agate.exceptions import FieldSizeLimitError
label_desc: Use image node_id 1 to create a new DictWriter object from inherited base classes: csv with example: obj = DictWriter(f, fieldnames, line_numbers)