code: def worker(uid_path, session, outdir):
      outdir = Path(outdir).absolute()
  
      uid, wav_path = uid_path
      feats = compute_fbank(wav_path)
      feats = feats.unsqueeze(0).numpy()  # add batch dimension
      embeddings = session.run(
          output_names=["embs"], input_feed={"feats": feats}
      )
      key, value = Path(wav_path).stem, np.squeeze(embeddings[0])
      p = str(outdir / f"{key}.npy")
      np.save(p, value)
      return f"{uid} {p}\n"
  
file_path: espnet/egs2/wsj0_2mix/tse1/local/prepare_spk_embs_scp.py
imports: from functools import partial
  from pathlib import Path
  import numpy
  import onnxruntime
  import torch
  import torchaudio
  import torchaudio.compliance.kaldi
  from tqdm.contrib.concurrent import thread_map
label_desc: Use image node_id 2 for calling a global function with example usage: worker(uid_path, session, outdir) and returns: uid, str, p, str