code: def test_quantize_attention_activations_float8(
      weights, activations, device
  ):
      _test_quantize_attention(
          device, weights=weights, activations=activations
      )
  
imports: import math
  from typing import Optional
  import pytest
  import torch
  import torch.utils.checkpoint
  from helpers import assert_similar, random_tensor
  from torch import nn
  from quanto import Calibration, quantize
label_desc: Use image node_id 7 for calling a global function with example usage: test_quantize_attention_activations_float8(weights, activations, device) without return types