code: def compile(self, ttFont):
      if "glyf" in ttFont:
          if ttFont.isLoaded("glyf") and ttFont.recalcBBoxes:
              self.recalc(ttFont)
      else:
          pass  # CFF
      self.numGlyphs = len(ttFont.getGlyphOrder())
      if self.tableVersion != 0x00005000:
          self.tableVersion = 0x00010000
      data = sstruct.pack(maxpFormat_0_5, self)
      if self.tableVersion == 0x00010000:
          data = data + sstruct.pack(maxpFormat_1_0_add, self)
      return data
  
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 2 for calling the table__m_a_x_p obj's underlying member method code with example usage: obj.compile(ttFont) and returns: data