code: def find_files(
      root_dir: str,
      query: List[str] = ["*.flac", "*.wav"],
      include_root_dir: bool = True,
  ) -> List[str]:
      """Find files recursively.
  
      Args:
          root_dir (str): Root root_dir to find.
          query (List[str]): Query to find.
          include_root_dir (bool): If False, root_dir name is not included.
  
      Returns:
          List[str]: List of found filenames.
  
      """
      files = []
      for root, dirnames, filenames in os.walk(
          root_dir, followlinks=True
      ):
          for q in query:
              for filename in fnmatch.filter(filenames, q):
                  files.append(os.path.join(root, filename))
      if not include_root_dir:
          files = [file_.replace(root_dir + "/", "") for file_ in files]
  
      return files
  
file_path: espnet/egs2/must_c_v2/s2t1/pyscripts/utils/evaluate_f0.py
imports: import argparse
  import fnmatch
  import logging
  import multiprocessing
  import os
  from typing import Dict, List, Tuple
  import librosa
  import numpy
  import pysptk
  import pyworld
  import soundfile
  from fastdtw import fastdtw
  from scipy import spatial
label_desc: Use image node_id 1 for calling a global function with example usage: find_files(root_dir, query, include_root_dir) and returns: files