code: def test_on_real_input(self):
      x = dvector()
      rng = np.random.RandomState(23)
      xval = rng.randn(10)
      np.all(0 == theano.function([x], imag(x))(xval))
      np.all(xval == theano.function([x], real(x))(xval))
  
      x = imatrix()
      xval = np.asarray(rng.randn(3, 3) * 100, dtype="int32")
      np.all(0 == theano.function([x], imag(x))(xval))
      np.all(xval == theano.function([x], real(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 2 for calling the TestRealImag obj's underlying member method code with example usage: obj.test_on_real_input() without return types