code: def _compilePaletteLabels(self):
      if self.version == 0 or all(
          l == self.NO_NAME_ID for l in self.paletteLabels
      ):
          return b""
      assert len(self.paletteLabels) == len(self.palettes)
      result = bytesjoin(
          [struct.pack(">H", label) for label in self.paletteLabels]
      )
      assert len(result) == 2 * len(self.palettes)
      return result
  
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 9 for calling the table_C_P_A_L_ obj's underlying member method code with example usage: obj._compilePaletteLabels() and returns: result, bytes