docs: def extract_chunks(blob):
      """Splits the blob into chucks grouped by kind."""
      chunks = []
      stream = BytesIO(blob.bytes)
      current_pos = stream.tell()
      stream.seek(0, 2)
      length = stream.tell()
      stream.seek(current_pos, 0)
      while stream.tell() < length:
          chunks.append(read_chunk(stream))
  
      return chunks