code: def test0(self):
      x = zvector()
      rng = np.random.RandomState(23)
      xval = np.asarray(
          list(np.complex(rng.randn(), rng.randn()) for i in xrange(10))
      )
      assert np.all(xval.real == theano.function([x], real(x))(xval))
      assert np.all(xval.imag == theano.function([x], imag(x))(xval))
  
file_path: Theano/theano/tensor/tests/test_complex.py
imports: from __future__ import absolute_import, print_function, division
  import unittest
  from six.moves import xrange
  import theano
  import numpy
  from theano.tensor import *
  from theano.tests import unittest_tools
  from numpy.testing import dec
label_desc: Use image node_id 1 for calling the TestRealImag obj's underlying member method code with example usage: obj.test0() without return types