docstr: Writes text.
docstr_tok: ["Writes","text","."]
code: def write(self, string, indent=True):
      """Writes text."""
      self._writeraw(escape(string), indent=indent)
  
imports: from fontTools.misc.textTools import byteord, strjoin, tobytes, tostr
  import sys
  import os
  import string
label_desc: Use image node_id 5 for calling the XMLWriter obj's underlying member method code with example usage: obj.write(string, indent) without return types