code: def _load(self):
      if self._blp_compression == BLP_FORMAT_JPEG:
          self._decode_jpeg_stream()
  
      elif self._blp_compression == 1:
          if self._blp_encoding in (4, 5):
              data = bytearray()
              palette = self._read_palette()
              _data = BytesIO(self.fd.read(self._blp_lengths[0]))
              while True:
                  try:
                      (offset,) = struct.unpack("<B", _data.read(1))
                  except struct.error:
                      break
                  b, g, r, a = palette[offset]
                  data.extend([r, g, b])
  
              self.set_as_raw(bytes(data))
          else:
              raise BLPFormatError(
                  "Unsupported BLP encoding %r" % (self._blp_encoding)
              )
      else:
          raise BLPFormatError(
              "Unsupported BLP compression %r" % (self._blp_encoding)
          )
  
imports: import struct
  from io import BytesIO
  from .None import Image, ImageFile
label_desc: Use image node_id 1 for calling the BLP1Decoder obj's underlying member method code with example usage: obj._load() without return types