class_docstr: See module docs.
code: def commit(self):
      # Save what we have written until now so that the buffer
      # itself is empty -- this makes it ready for insertion
      if self.stream.tell():
          self.prepended_children.append(StringIOTree(self.stream))
          self.prepended_children[-1].markers = self.markers
          self.markers = []
          self.stream = StringIO()
          self.write = self.stream.write
  
file_path: catboost/contrib/tools/cython/Cython/StringIOTree.py
imports: from __future__ import absolute_import
label_desc: Use image node_id 4 for calling the StringIOTree obj's underlying member method code with example usage: obj.commit() without return types