code: def random_tensor(shape, dtype=torch.float32):
      # Return a random tensor between -1. and 1.
      return torch.rand(shape, dtype=dtype) * 2 - 1
  
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 3 for calling a global function with example usage: random_tensor(shape, dtype) and returns: unknown