code: def human_range_energy(signal, fs):
      """Computes the human range energy ratio.
  
      The human range energy ratio is given by the ratio between the energy
      in frequency 0.6-2.5Hz and the whole energy band.
  
      Feature computational cost: 2
  
      Parameters
      ----------
      signal : nd-array
          Signal from which human range energy ratio is computed
      fs : float
          Sampling frequency
  
      Returns
      -------
      float
          Human range energy ratio
  
      """
      f, fmag = calc_fft(signal, fs)
  
      allenergy = np.sum(fmag**2)
  
      if allenergy == 0:
          # For handling the occurrence of Nan values
          return 0.0
  
      hr_energy = np.sum(
          fmag[np.argmin(np.abs(0.6 - f)) : np.argmin(np.abs(2.5 - f))]
          ** 2
      )
  
      ratio = hr_energy / allenergy
  
      return ratio
  
imports: import scipy.signal
  from tsfel.feature_extraction.features_utils import *
label_desc: Use image node_id 51 for calling a global function with example usage: human_range_energy(signal, fs) and returns: ratio, int