code: def test_instantiate(input_shape, dtype, itype, device):
      max_value = min(1024, torch.iinfo(itype).max)
      data = torch.randint(
          -max_value, max_value, input_shape, dtype=itype
      )
      qa = QTensor(
          data, scale=torch.tensor(1.0 / max_value, dtype=dtype)
      ).to(device)
      assert torch.max(torch.abs(qa.dequantize())) <= 1
      assert qa.dtype == dtype
      assert qa.itype == itype
  
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 4 for calling a global function with example usage: test_instantiate(input_shape, dtype, itype, device) without return types