code: def test_quantized_tensor_requires_grad(device):
      weight = random_tensor((10,), dtype=torch.float32).to(device)
      weight.requires_grad = True
      qweight = QTensor.quantize(weight)
      assert qweight.requires_grad is True
  
file_path: quanto/test/tensor/test_qtensor.py
imports: import os
  from tempfile import TemporaryDirectory
  import pytest
  import torch
  from helpers import assert_similar, device_eq, q_assert_close, random_qtensor, random_tensor
  from quanto import QTensor, absmax_scale
label_desc: Use image node_id 6 for calling a global function with example usage: test_quantized_tensor_requires_grad(device) without return types