code: def _compilePalette(self, palette):
      assert len(palette) == self.numPaletteEntries
      pack = lambda c: struct.pack(
          ">BBBB", c.blue, c.green, c.red, c.alpha
      )
      return bytesjoin([pack(color) for color in palette])
  
imports: from fontTools.misc.textTools import bytesjoin, safeEval
  from .None import DefaultTable
  import array
  from collections import namedtuple
  import struct
  import sys
label_desc: Use image node_id 6 for calling the table_C_P_A_L_ obj's underlying member method code with example usage: obj._compilePalette(palette) and returns: bytesjoin