code: def fftfreq(n, d=1.0):
      if not isinstance(
          n,
          (
              int,
              type(ivy.int8),
              type(ivy.int16),
              type(ivy.int32),
              type(ivy.int64),
          ),
      ):
          raise TypeError("n should be an integer")
  
      N = (n - 1) // 2 + 1
      val = 1.0 / (n * d)
      results = ivy.empty((n,), dtype=int)
  
      p1 = ivy.arange(0, N, dtype=int)
      results[:N] = p1
      p2 = ivy.arange(-(n // 2), 0, dtype=int)
      results[N:] = p2
  
      return results * val
  
file_path: ivy/ivy/functional/frontends/numpy/fft/discrete_fourier_transform.py
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back
  from ivy.func_wrapper import with_unsupported_dtypes
label_desc: Use image node_id 3 for calling a global function with example usage: fftfreq(n, d) and returns: unknown