code: def iterdecode(iterable, codec):
      
      decoder = codec.incrementaldecoder()
      for chunk in iterable:
          yield decoder.decode(chunk)
      yield decoder.decode(b'', True)
docs: Uses an incremental decoder to decode each chunk in iterable.
      This function is a generator.
  
      :param iterable: Iterable object which yields raw data to be decoded
      :param codec: An instance of codec