code: def test_to_device(device):
      qa = random_qtensor((32, 32), dtype=torch.float)
      qa = qa.to(device)
      assert isinstance(qa, QTensor)
      assert qa.device.type == device.type
  
file_path: quanto/test/tensor/ops/test_quantized_dispatch.py
imports: import pytest
  import torch
  from helpers import q_assert_close, random_qtensor, random_tensor
  from quanto import QTensor
label_desc: Use image node_id 1 for calling a global function with example usage: test_to_device(device) without return types