code: def test_to_device_cuda():
      obj = {"a": [torch.tensor([0, 1])]}
      obj2 = to_device(obj, "cuda")
      assert obj2["a"][0].device == torch.device("cuda:0")
  
file_path: espnet/test/espnet2/torch_utils/test_device_funcs.py
imports: import dataclasses
  from typing import NamedTuple
  import pytest
  import torch
  from espnet2.torch_utils.device_funcs import force_gatherable, to_device
label_desc: Use image node_id 2 for calling a global function with example usage: test_to_device_cuda() without return types