text: #
  """
  """
  
  # end_pymotw_header
  import zlib
  
  lorem = open("lorem.txt", "rb").read()
  compressed = zlib.compress(lorem)
  combined = compressed + lorem
  
  decompressor = zlib.decompressobj()
  decompressed = decompressor.decompress(combined)
  
  decompressed_matches = decompressed == lorem
  print("Decompressed matches lorem:", decompressed_matches)
  
  unused_matches = decompressor.unused_data == lorem
  print("Unused data matches lorem :", unused_matches)
  