Implement a streaming encoder that compresses a sequence of 32-bit integers using two interleaved encoding strategies: Run-Length Encoding (RLE) and Bit-Packing (BP). Input arrives as a stream (one integer at a time — you cannot store the entire input). The encoder must output a list of 'Run' objects, each tagged…