code: def test_check_device_device_spec(shape, device_spec):
      dtype = "float32"
      a = chainerx.empty(shape, dtype, device=device_spec)
      device = chainerx.get_device(device_spec)
  
      array_utils.check_device(a, device_spec)
      array_utils.check_device(a, device)
  
file_path: chainer/tests/chainerx_tests/test_array_utils.py
imports: import numpy
  import pytest
  import chainerx
  from chainerx_tests import array_utils
label_desc: Use image node_id 6 for calling a global function with example usage: test_check_device_device_spec(shape, device_spec) without return types