code: def toXML(self, writer, ttFont):
      if self.tableVersion != 0x00005000:
          writer.comment(
              "Most of this table will be recalculated by the compiler"
          )
          writer.newline()
      formatstring, names, fixes = sstruct.getformat(maxpFormat_0_5)
      if self.tableVersion != 0x00005000:
          formatstring, names_1_0, fixes = sstruct.getformat(
              maxpFormat_1_0_add
          )
          names = names + names_1_0
      for name in names:
          value = getattr(self, name)
          if name == "tableVersion":
              value = hex(value)
          writer.simpletag(name, value=value)
          writer.newline()
  
file_path: catboost/contrib/python/fonttools/fontTools/ttLib/tables/_m_a_x_p.py
imports: from fontTools.misc import sstruct
  from fontTools.misc.textTools import safeEval
  from .None import DefaultTable
label_desc: Use image node_id 5 for calling the table__m_a_x_p obj's underlying member method code with example usage: obj.toXML(writer, ttFont) without return types