code: def test_to_device(obj):
      to_device(obj, "cpu")
  
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 1 for calling a global function with example usage: test_to_device(obj) without return types