code: def __get_files(
      dir_name: Union[str, os.PathLike[Any]], extensions: Set[str]
  ):
      """Get a list of files in a single directory"""
      # Expand out the directory
      dir_name = os.path.abspath(os.path.expanduser(dir_name))
  
      myfiles = set()
  
      for sub_ext in extensions:
          globstr = os.path.join(
              dir_name, "*" + os.path.extsep + sub_ext
          )
          myfiles |= set(glob.glob(globstr))
  
      return myfiles
  
file_path: librosa/librosa/util/files.py
imports: from __future__ import annotations
  from typing import List, Optional, Union, Any, Set
  import os
  import glob
  import json
  from importlib import resources
  from pathlib import Path
  import pooch
  from .exceptions import ParameterError
label_desc: Use image node_id 5 for calling a global function with example usage: __get_files(dir_name, extensions) and returns: myfiles