code: def filter_file_list(
      file_list, ratio=18, excluded=WORDS + [BACKGROUND_NOISE]
  ):
      file_dict = {}
      for p in file_list:
          w = p.split("/")[-2]  # word, i.e. folder name
          if w not in file_dict:
              file_dict[w] = []
          file_dict[w].append(p)
  
      new_file_list = []
      for w in file_dict:
          if w in excluded:
              new_file_list += file_dict[w]
          else:
              new_file_list += sorted(file_dict[w])[
                  ::ratio
              ]  # every `ratio` files
      return new_file_list
  
file_path: espnet/egs2/speechcommands/asr1/local/data_prep_12.py
imports: import argparse
  import csv
  import glob
  import os
  import os.path
  import numpy
  from scipy.io import wavfile
label_desc: Use image node_id 1 for calling a global function with example usage: filter_file_list(file_list, ratio, excluded) and returns: new_file_list