code: def compile(self, ttFont):
      data = sstruct.pack(postFormat, self)
      if self.formatType == 1.0:
          pass  # we're done
      elif self.formatType == 2.0:
          data = data + self.encode_format_2_0(ttFont)
      elif self.formatType == 3.0:
          pass  # we're done
      elif self.formatType == 4.0:
          data = data + self.encode_format_4_0(ttFont)
      else:
          # supported format
          raise ttLib.TTLibError(
              "'post' table format %f not supported" % self.formatType
          )
      return data
  
imports: from fontTools import ttLib
  from fontTools.ttLib.standardGlyphOrder import standardGlyphOrder
  from fontTools.misc import sstruct
  from fontTools.misc.textTools import bytechr, byteord, tobytes, tostr, safeEval, readHex
  from .None import DefaultTable
  import sys
  import struct
  import array
  import logging
label_desc: Use image node_id 2 for calling the table__p_o_s_t obj's underlying member method code with example usage: obj.compile(ttFont) and returns: data