code: def _same_t_in_true_and_est(func):
      def new_func(true_t, true_f, est_t, est_f):
          assert type(true_t) is np.ndarray
          assert type(true_f) is np.ndarray
          assert type(est_t) is np.ndarray
          assert type(est_f) is np.ndarray
  
          interpolated_f = interp1d(
              est_t,
              est_f,
              bounds_error=False,
              kind="nearest",
              fill_value=0,
          )(true_t)
          return func(true_t, true_f, true_t, interpolated_f)
  
      return new_func
  
file_path: fairseq/examples/speech_synthesis/utils.py
imports: import numpy
  import torch
  from scipy.interpolate import interp1d
  import torchaudio
  from fairseq.tasks.text_to_speech import batch_compute_distortion, compute_rms_dist
label_desc: Use image node_id 2 for calling a global function with example usage: _same_t_in_true_and_est(func) and returns: new_func, func