code: def test_illegal(self):
      try:
          x = zmatrix()
          function([x], cast(x, "float64"))(
              np.ones((2, 3), dtype="complex128")
          )
      except TypeError:
          return
      assert 0
  
file_path: Theano/theano/tensor/tests/test_casting.py
imports: from __future__ import absolute_import, print_function, division
  import unittest
  from theano import function
  from theano.tensor.basic import _convert_to_int32, _convert_to_int8, _convert_to_int16, _convert_to_int64, _convert_to_float32, _convert_to_float64
  from theano.tensor import *
label_desc: Use image node_id 2 for calling the test_casting obj's underlying member method code with example usage: obj.test_illegal() without return types