code: def test_rfft(self):
      inputs_val = np.random.random((1, N, N)).astype(
          theano.config.floatX
      )
      inputs = theano.shared(inputs_val)
  
      rfft = fft.rfft(inputs)
      f_rfft = theano.function([], rfft)
      res_rfft = f_rfft()
      res_rfft_comp = np.asarray(
          res_rfft[:, :, :, 0]
      ) + 1j * np.asarray(res_rfft[:, :, :, 1])
  
      rfft_ref = np.fft.rfftn(inputs_val, axes=(1, 2))
  
      utt.assert_allclose(rfft_ref, res_rfft_comp, atol=1e-4, rtol=1e-4)
  
file_path: Theano/theano/tensor/tests/test_fft.py
imports: from __future__ import absolute_import, print_function, division
  import numpy
  import unittest
  import theano
  from theano import tensor
  from theano.tests import unittest_tools
  from theano.tensor import fft
label_desc: Use image node_id 3 for calling the TestFFT obj's underlying member method code with example usage: obj.test_rfft() without return types