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/owsm_v3/s2t1/pyscripts/utils/evaluate_pseudomos.py
imports: import argparse
  import fnmatch
  import logging
  import os
  from typing import List
  import librosa
  import numpy
  import torch
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