code: def random_qtensor(
      shape, itype=torch.int8, dtype=torch.float32, axis=None
  ):
      t = random_tensor(shape, dtype)
      scale = absmax_scale(t, itype=itype, axis=axis)
      return QTensor.quantize(t, itype=itype, scale=scale)
  
file_path: quanto/test/helpers.py
imports: import functools
  import pytest
  import torch
  from packaging import version
  from quanto import QTensor, absmax_scale
label_desc: Use image node_id 4 for calling a global function with example usage: random_qtensor(shape, itype, dtype, axis) and returns: QTensor