code: def find_audio_files_in_paths(
      paths: Union[List[Path], List[str], Path, str],
      filename_endings=SUPPORTED_EXTENSIONS,
      traverse_subdirectories=True,
      follow_symlinks=True,
  ):
      """Return a list of paths to all audio files with the given extension(s) contained in the list or in its directories.
      Also traverses subdirectories by default.
      """
  
      file_paths = []
  
      if isinstance(paths, (list, tuple, set)):
          paths = list(paths)
      else:
          paths = [paths]
  
      for p in paths:
          if str(p).lower().endswith(SUPPORTED_EXTENSIONS):
              file_path = Path(os.path.abspath(p))
              file_paths.append(file_path)
          elif os.path.isdir(p):
              file_paths += find_audio_files(
                  p,
                  filename_endings=filename_endings,
                  traverse_subdirectories=traverse_subdirectories,
                  follow_symlinks=follow_symlinks,
              )
      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 2 for calling a global function with example usage: find_audio_files_in_paths(paths, filename_endings, traverse_subdirectories, follow_symlinks) and returns: file_paths