def test_type_check(self): x = chainer.Variable(self.data) with self.assertRaises(type_check.InvalidType): functions.broadcast_to(x, self.out_shape)