code: def test_quantize_attention_activations_int8(weights, device):
      _test_quantize_attention(
          device, weights=weights, activations=torch.int8
      )
  
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 6 for calling a global function with example usage: test_quantize_attention_activations_int8(weights, device) without return types