code: def decode_resample_slurp(data_dir: str, anno_dir: str):
      wavs_dir = Path(data_dir) / Path("wavs")
      wavs_dir.mkdir(parents=True, exist_ok=True)
      wavs_real_dir = wavs_dir / Path("slurp_real")
      wavs_real_dir.mkdir(parents=True, exist_ok=True)
      wavs_synth_dir = wavs_dir / Path("slurp_synth")
      wavs_synth_dir.mkdir(parents=True, exist_ok=True)
  
      manifest_path = Path(anno_dir)
      if manifest_path.is_dir():
          manifest_list = list(manifest_path.glob("*.json"))
      else:
          manifest_list = [str(manifest_path)]
  
      print(f"Found {len(manifest_list)} manifests to be processed.")
      for manifest in manifest_list:
          print(f"Processing manifest: {manifest}")
          data = load_data(str(manifest), data_dir)
  
          data_new = process_map(
              process,
              data,
              max_workers=multiprocessing.cpu_count(),
              chunksize=100,
          )
  
          output_file = Path(data_dir) / Path(manifest.name)
          with output_file.open("w") as f:
              for item in tqdm(data_new):
                  f.write(json.dumps(item) + "\n")
  
file_path: NeMo/scripts/dataset_processing/process_slurp_data.py
imports: import argparse
  import json
  import multiprocessing
  import os
  import tarfile
  from pathlib import Path
  import librosa
  import pandas
  import soundfile
  import wget
  from tqdm import tqdm
  from tqdm.contrib.concurrent import process_map
label_desc: Use image node_id 7 for calling a global function with example usage: decode_resample_slurp(data_dir, anno_dir) without return types