code: def extfrm(data, npow, power_threshold=-20):
      """Extract frame over the power threshold
  
      Parameters
      ----------
      data: array, shape (`T`, `dim`)
          Array of input data
      npow : array, shape (`T`)
          Vector of normalized power sequence.
      power_threshold : float, optional
          Value of power threshold [dB]
          Default set to -20
  
      Returns
      -------
      data: array, shape (`T_ext`, `dim`)
          Remaining data after extracting frame
          `T_ext` <= `T`
  
      """
  
      T = data.shape[0]
      if T != len(npow):
          raise ("Length of two vectors is different.")
  
      valid_index = np.where(npow > power_threshold)
      extdata = data[valid_index]
      assert extdata.shape[0] <= T
  
      return extdata
  
imports: import argparse
  import fnmatch
  import multiprocessing
  import os
  import numpy
  import pysptk
  import pyworld
  import scipy
  from fastdtw import fastdtw
  from scipy.io import wavfile
  from scipy.signal import firwin, lfilter
label_desc: Use image node_id 5 for calling a global function with example usage: extfrm(data, npow, power_threshold) and returns: extdata