code: def test_standard_fft():
      t = ones((10, 20, 30), chunk_size=(3, 20, 30))
  
      t1 = fft(t)
      assert t1.shape == (10, 20, 30)
      t1 = tile(t1)
      assert t1.shape == tuple(sum(ns) for ns in t1.nsplits)
  
      t = ones((10, 20, 30), chunk_size=(3, 20, 30))
  
      t1 = ifft(t)
      assert t1.shape == (10, 20, 30)
      t1 = tile(t1)
      assert t1.shape == tuple(sum(ns) for ns in t1.nsplits)
  
      t = ones((10, 20, 30), chunk_size=(3, 20, 30))
  
      t1 = fft2(t, s=(23, 21))
      assert t1.shape == (10, 23, 21)
      t1 = tile(t1)
      assert t1.shape == tuple(sum(ns) for ns in t1.nsplits)
  
      t = ones((10, 20, 30), chunk_size=(3, 20, 30))
  
      t1 = ifft2(t, s=(11, 9), axes=(1, 2))
      assert t1.shape == (10, 11, 9)
      t1 = tile(t1)
      assert t1.shape == tuple(sum(ns) for ns in t1.nsplits)
  
      t = ones((10, 20, 30), chunk_size=(3, 20, 30))
  
      t1 = fftn(t, s=(11, 9), axes=(1, 2))
      assert t1.shape == (10, 11, 9)
      t1 = tile(t1)
      assert t1.shape == tuple(sum(ns) for ns in t1.nsplits)
  
      t = ones((10, 20, 30), chunk_size=(3, 20, 30))
  
      t1 = ifftn(t, s=(11, 9), axes=(1, 2))
      assert t1.shape == (10, 11, 9)
      t1 = tile(t1)
      assert t1.shape == tuple(sum(ns) for ns in t1.nsplits)
  
file_path: mars/mars/tensor/fft/tests/test_fft.py
imports: import numpy
  from ....core import tile
  from ...datasource import ones
  from ..None import fft, ifft, fft2, ifft2, fftn, ifftn, rfft, irfft, rfft2, irfft2, rfftn, irfftn, hfft, ihfft, fftfreq, rfftfreq, fftshift, ifftshift
label_desc: Use image node_id 1 for calling a global function with example usage: test_standard_fft() without return types