code: def read_iemocap_mocap():
      for session in sessions:
          path_to_wav = os.path.join(
              iemocap_path, session, "dialog", "wav"
          )
          files2 = os.listdir(path_to_wav)
  
          files = []
          for f in files2:
              if f.endswith(".wav"):
                  if "perturb" not in f:
                      if f[0] == ".":
                          files.append(f[2:-4])
                      else:
                          files.append(f[:-4])
          print("Collect ", session)
          with Pool(cpu_num) as p:
              r = list(
                  tqdm.tqdm(p.imap(collect, files), total=len(files))
              )
  
      sort_key = get_field(data, "id")
      return np.array(data)[np.argsort(sort_key)]
  
file_path: delta/egs/iemocap/emo/v1/local/python/mocap_data_collect.py
imports: import os
  import sys
  import tqdm
  import numpy
  import wave
  import copy
  import math
  import pickle
  from multiprocessing import Pool, Lock, cpu_count, Manager
  from sklearn.preprocessing import label_binarize
  from helper import *
label_desc: Use image node_id 5 for calling a global function with example usage: read_iemocap_mocap() and returns: np