class_docstr: A writer that understands tokens and how to format C code
class_docstr_tok: ["A","writer","that","understands","tokens","and","how","to","format","C","code"]
code: def emit_str(self, txt: str) -> None:
      self.maybe_dedent(txt)
      if self.newline and txt:
          if txt[0] != "\n":
              self.out.write(" " * self.indents[-1])
          self.newline = False
      self.emit_text(txt)
      if txt.endswith("\n"):
          self.newline = True
      self.maybe_indent(txt)
      self.last_token = None
  
file_path: cpython/Tools/cases_generator/cwriter.py
imports: import contextlib
  from lexer import Token
  from typing import TextIO, Iterator
label_desc: Use image node_id 9 for calling the CWriter obj's underlying member method code with example usage: obj.emit_str(txt) without return types