code: def _palette(self, palette, shift):
      # load palette
  
      i = 0
      for e in range(i16(self.fp.read(2))):
          s = self.fp.read(2)
          i = i + s[0]
          n = s[1]
          if n == 0:
              n = 256
          s = self.fp.read(n * 3)
          for n in range(0, len(s), 3):
              r = s[n] << shift
              g = s[n + 1] << shift
              b = s[n + 2] << shift
              palette[i] = (r, g, b)
              i += 1
  
file_path: pillow-simd/src/PIL/FliImagePlugin.py
imports: from .None import Image, ImageFile, ImagePalette
  from ._binary import i16le
  from ._binary import i32le
  from ._binary import o8
label_desc: Use image node_id 2 for calling the FliImageFile obj's underlying member method code with example usage: obj._palette(palette, shift) without return types