class_docstr: Wrapper for _IncrementalWriter providing an Element like interface.
  
  This wrapper does not intend to be a complete implementation but rather to
  deal with those calls used in GraphMLWriter.
class_docstr_tok: ["Wrapper","for","_IncrementalWriter","providing","an","Element","like","interface",".","This","wrapper","does","not","intend","to","be","a","complete","implementation","but","rather","to","deal","with","those","calls","used","in","GraphMLWriter","."]
code: def __init__(self, xml, prettyprint):
      self.xml = xml
      self.prettyprint = prettyprint
  
imports: import warnings
  from collections import defaultdict
  import networkx
  from networkx.utils import open_file
label_desc: Use image node_id 1 to create a new IncrementalElement object  with example: obj = IncrementalElement(xml, prettyprint)