code: def __init__(
      self,
      fileOrPath,
      ttFont,
      progress=None,
      quiet=None,
      contentOnly=False,
  ):
      if fileOrPath == "-":
          fileOrPath = sys.stdin
      if not hasattr(fileOrPath, "read"):
          self.file = open(fileOrPath, "rb")
          self._closeStream = True
      else:
          # assume readable file object
          self.file = fileOrPath
          self._closeStream = False
      self.ttFont = ttFont
      self.progress = progress
      if quiet is not None:
          from fontTools.misc.loggingTools import deprecateArgument
  
          deprecateArgument("quiet", "configure logging instead")
          self.quiet = quiet
      self.root = None
      self.contentStack = []
      self.contentOnly = contentOnly
      self.stackSize = 0
  
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 1 to create a new XMLReader object from inherited base classes: object with example: obj = XMLReader(fileOrPath, ttFont, progress, quiet, contentOnly)