docstr: Writes a bytes() sequence into the XML, escaping
  non-ASCII bytes.  When this is read in xmlReader,
  the original bytes can be recovered by encoding to
  'latin-1'.
docstr_tok: ["Writes","a","bytes","(",")","sequence","into","the","XML",",","escaping","non-ASCII","bytes",".","When","this","is","read","in","xmlReader",",","the","original","bytes","can","be","recovered","by","encoding","to","'latin-1","'","."]
code: def write8bit(self, data, strip=False):
      """Writes a bytes() sequence into the XML, escaping
      non-ASCII bytes.  When this is read in xmlReader,
      the original bytes can be recovered by encoding to
      'latin-1'."""
      self._writeraw(escape8bit(data), strip=strip)
  
imports: from fontTools.misc.textTools import byteord, strjoin, tobytes, tostr
  import sys
  import os
  import string
label_desc: Use image node_id 7 for calling the XMLWriter obj's underlying member method code with example usage: obj.write8bit(data, strip) without return types