code: def test_forward_mixed_cpu_gpu_2(self):
      with testing.assert_warns(DeprecationWarning):
          self.link.to_gpu()
      with self.assertRaises(TypeError):
          # self.x is not sent to gpu
          self.check_forward(self.x)
  
imports: import unittest
  import numpy
  import chainer
  from chainer.backends import cuda
  from chainer import gradient_check
  from chainer import links
  from chainer import testing
  from chainer.testing import attr
  from chainer.testing import condition
label_desc: Use image node_id 6 for calling the TestEmbedID obj's underlying member method code with example usage: obj.test_forward_mixed_cpu_gpu_2() without return types