class_docstr: Fast Fourier transform.
class_docstr_tok: ["Fast","Fourier","transform","."]
code: def forward(self, inputs):
      xp = backend.get_array_module(*inputs)
      real, imag = inputs
      x = real + imag * 1j
      y = getattr(xp.fft, self._method)(x)
      real_y = y.real.astype(real.dtype, copy=False)
      imag_y = y.imag.astype(imag.dtype, copy=False)
      return real_y, imag_y
  
file_path: chainer/chainer/functions/math/fft.py
imports: from chainer import backend
  from chainer import function_node
  from chainer.utils import type_check
label_desc: Use image node_id 3 for calling the FFT obj's underlying member method code with example usage: obj.forward(inputs) and returns: real_y,  imag_y