code: def rfft_fn(x, n=None, onesided=False):
      if __TORCH_GTE_1_7:
          y = torch.fft.fft(x)
          return torch.view_as_real(y)
      else:
          return torch.rfft(x, n, onesided=onesided)
  
imports: import sys
  import torch
  from torch.nn.functional import conv1d, fold
  import numpy
  from time import time
  import math
  from scipy.signal import get_window
  from scipy import signal
  from scipy.fftpack import fft
  import warnings
  from nnAudio.librosa_functions import *
label_desc: Use image node_id 1 for calling a global function with example usage: rfft_fn(x, n, onesided) and returns: torch, torch