code: def _characterDataHandler(self, data):
      if self.stackSize > 1:
          # parser parses in chunks, so we may get multiple calls
          # for the same text node; thus we need to append the data
          # to the last item in the content stack:
          # https://github.com/fonttools/fonttools/issues/2614
          if (
              data != "\n"
              and self.contentStack[-1]
              and isinstance(self.contentStack[-1][-1], str)
              and self.contentStack[-1][-1] != "\n"
          ):
              self.contentStack[-1][-1] += data
          else:
              self.contentStack[-1].append(data)
  
imports: from fontTools import ttLib
  from fontTools.misc.textTools import safeEval
  from fontTools.ttLib.tables.DefaultTable import DefaultTable
  import sys
  import os
  import logging
label_desc: Use image node_id 6 for calling the XMLReader obj's underlying member method code with example usage: obj._characterDataHandler(data) without return types