code: def test_copy_data_to_device_tensor(self) -> None:
      cuda_0 = torch.device("cuda:0")
      a = torch.tensor([1, 2, 3])
      self.assertEqual(a.device.type, "cpu")
      a = copy_data_to_device(a, cuda_0)
      self.assertEqual(a.device.type, "cuda")
  
imports: import dataclasses
  import os
  import unittest
  from collections import defaultdict, namedtuple
  from dataclasses import dataclass
  from typing import Any, Dict
  from unittest import mock
  from unittest.mock import patch
  import torch
  from torchtnt.utils.device import copy_data_to_device, get_device_from_env, get_nvidia_smi_gpu_stats, get_psutil_cpu_stats, record_data_in_stream, set_float32_precision
label_desc: Use image node_id 3 for calling the DeviceTest obj's underlying member method code with example usage: obj.test_copy_data_to_device_tensor() without return types