code: def check_invalid(self, src_device, dst_device_spec):
      x = src_device.send(
          numpy.random.uniform(-1, 1, (10, 5)).astype(self.dtype)
      )
  
      x_var = chainer.Variable(x)
  
      with pytest.raises(RuntimeError):
          functions.copy(x_var, dst_device_spec)
  
imports: import unittest
  import numpy
  import pytest
  import chainer
  from chainer import backend
  from chainer.backends import _cpu
  from chainer.backends import cuda
  from chainer import functions
  from chainer import testing
  import chainerx
label_desc: Use image node_id 1 for calling the TestCopyBetweenChainerxAndNonChainerx obj's underlying member method code with example usage: obj.check_invalid(src_device, dst_device_spec) without return types