code: def read_egs_files(path: tp.Union[str, Path]):
      path = Path(path)
      if path.is_dir():
          if (path / "data.jsonl").exists():
              path = path / "data.jsonl"
          elif (path / "data.jsonl.gz").exists():
              path = path / "data.jsonl.gz"
          else:
              raise ValueError(
                  "Don't know where to read metadata from in the dir. "
                  "Expecting either a data.jsonl or data.jsonl.gz file but none found."
              )
      meta = load_audio_meta(path)
      return [m.path for m in meta]
  
file_path: audiocraft/scripts/resample_dataset.py
imports: import argparse
  from pathlib import Path
  import shutil
  import typing
  import submitit
  import tqdm
  from audiocraft.data.audio import audio_read, audio_write
  from audiocraft.data.audio_dataset import load_audio_meta, find_audio_files
  from audiocraft.data.audio_utils import convert_audio
  from audiocraft.environment import AudioCraftEnvironment
label_desc: Use image node_id 2 for calling a global function with example usage: read_egs_files(path) and returns: unknown