def quantize_dequantize(quantization, tensor):
    """Simple helper to quantize and dequantize."""
    quantized_tensor, context = quantization.quantize(tensor)
    dequantized_tensor = quantization.dequantize(quantized_tensor, context)
    return quantized_tensor, dequantized_tensor, context