code: def gzip_uncompress(data, truncated=False):
      '''Uncompress gzip data.
  
      Args:
          data (bytes): The gzip data.
          truncated (bool): If True, the decompressor is not flushed.
  
      This is a convenience function.
  
      Returns:
          bytes: The inflated data.
  
      Raises:
          zlib.error
      '''
      decompressor = SimpleGzipDecompressor()
      inflated_data = decompressor.decompress(data)
  
      if not truncated:
          inflated_data += decompressor.flush()
  
      return inflated_datf gzip_uncompress(data, truncated=False):
      '''Uncompress gzip data.
  
      Args:
          data (bytes): The gzip data.
          truncated (bool): If True, the decompressor is not flushed.
  
      This is a convenience function.
  
      Returns:
          bytes: The inflated data.
  
      Raises:
          zlib.error
      '''
      decompressor = SimpleGzipDecompressor()
      inflated_data = decompressor.decompress(data)
  
      if not truncated:
          inflated_data += decompressor.flush()
  
      return inflated_data
docs: Uncompress gzip data.
  
      Args:
          data (bytes): The gzip data.
          truncated (bool): If True, the decompressor is not flushed.
  
      This is a convenience function.
  
      Returns:
          bytes: The inflated data.
  
      Raises:
          zlib.error