code: def test_check_device_fail(shape, device, compare_device_spec):
      dtype = "float32"
      a = chainerx.empty(shape, dtype, device=device)
  
      with chainerx.using_device("native:1"):
          with pytest.raises(AssertionError):
              array_utils.check_device(a, compare_device_spec)
  
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 7 for calling a global function with example usage: test_check_device_fail(shape, device, compare_device_spec) without return types