code: def test_fft_freq():
      t = fftfreq(10, 0.1, chunk_size=3)
  
      assert t.shape == np.fft.fftfreq(10, 0.1).shape
      t = tile(t)
      assert t.shape == tuple(sum(ns) for ns in t.nsplits)
  
      t = rfftfreq(10, 0.1, chunk_size=3)
  
      assert t.shape == np.fft.rfftfreq(10, 0.1).shape
      t = tile(t)
      assert t.shape == tuple(sum(ns) for ns in t.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 5 for calling a global function with example usage: test_fft_freq() without return types