code: def find_audio_files(
      root_path,
      filename_endings=SUPPORTED_EXTENSIONS,
      traverse_subdirectories=True,
      follow_symlinks=True,
  ):
      """Return a list of paths to all audio files with the given extension(s) in a directory.
      Also traverses subdirectories by default.
      """
      file_paths = []
  
      for root, dirs, filenames in os.walk(
          root_path, followlinks=follow_symlinks
      ):
          filenames = sorted(filenames)
          for filename in filenames:
              input_path = os.path.abspath(root)
              file_path = os.path.join(input_path, filename)
  
              if filename.lower().endswith(filename_endings):
                  file_paths.append(Path(file_path))
          if not traverse_subdirectories:
              # prevent descending into subfolders
              break
  
      return file_paths
  
file_path: audiomentations/audiomentations/core/utils.py
imports: import os
  from functools import lru_cache
  from pathlib import Path
  from typing import List, Union, Tuple
  import math
  import numpy
  from numpy.typing import NDArray
label_desc: Use image node_id 1 for calling a global function with example usage: find_audio_files(root_path, filename_endings, traverse_subdirectories, follow_symlinks) and returns: file_paths