code: def test_sparse_tensor_error(self):
      import theano.sparse
  
      if not theano.sparse.enable_sparse:
          raise SkipTest("Optimization temporarily disabled")
      rng = np.random.RandomState(utt.fetch_seed())
      data = rng.rand(2, 3).astype(self.dtype)
      x = self.shared(data)
      y = theano.sparse.matrix("csc", dtype=self.dtype, name="y")
      z = theano.sparse.matrix("csr", dtype=self.dtype, name="z")
      cond = theano.tensor.iscalar("cond")
  
      self.assertRaises(TypeError, ifelse, cond, x, y)
      self.assertRaises(TypeError, ifelse, cond, y, x)
      self.assertRaises(TypeError, ifelse, cond, x, z)
      self.assertRaises(TypeError, ifelse, cond, z, x)
      self.assertRaises(TypeError, ifelse, cond, y, z)
      self.assertRaises(TypeError, ifelse, cond, z, y)
  
imports: from __future__ import absolute_import, print_function, division
  import unittest
  import numpy
  from nose.plugins.skip import SkipTest
  from six.moves import reduce
  import theano
  from theano import tensor
  import theano.ifelse
  from theano.ifelse import IfElse, ifelse
  from theano.tests import unittest_tools
label_desc: Use image node_id 14 for calling the test_ifelse obj's underlying member method code with example usage: obj.test_sparse_tensor_error() without return types