code: def xz_decompress_stream(src):
      
      dec = lzma.LZMADecompressor()
      for block in src:
          decoded = dec.decompress(block)
          if decoded:
              yield decoded
  
      if dec.unused_data:  # pragma: nocover; can't figure out how to test this
          raise IOError('Read unused data at end of compressed stream')
docs: Decompress data from `src`.
  
      Args:
          src (iterable): iterable that yields blocks of compressed data
  
      Yields:
          blocks of uncompressed data