code: def test_force_gatherable_0dim_to_1dim():
      obj = {"a": [3]}
      obj2 = force_gatherable(obj, "cpu")
      assert obj2["a"][0].shape == (1,)
  
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 4 for calling a global function with example usage: test_force_gatherable_0dim_to_1dim() without return types