code: def direct_hilbert(x):
      fx = fft(x)
      n = len(fx)
      w = fftfreq(n) * n
      w = 1j * sign(w)
      return ifft(w * fx)
  
file_path: scipy/benchmarks/benchmarks/fftpack_pseudo_diffs.py
imports: from numpy import arange, sin, cos, pi, exp, tanh, sign
  from .common import Benchmark, safe_import
label_desc: Use image node_id 3 for calling a global function with example usage: direct_hilbert(x) and returns: ifft