code: def _process_data(data):
      global BLACKLIST_IDS
      wavs = []
      texts = []
      utt2spk = []
      for dialogue in data:
          dialogue_id = dialogue["dlg_id"]
          for utterance in dialogue["utterances"]:
              wav_path = os.path.join(
                  domain_dir,
                  "audios/{}.wav".format(utterance["wav_id"]),
              )
  
              utt_id = "{}-{}-{}".format(
                  domain_dir.parts[-1],
                  utterance["wav_id"],
                  utterance["utt_id"],
              )
  
              manual_transcript = utterance["manual_transcript"]
              manual_transcript = manual_transcript.replace(
                  "(unknown)", ""
              )
              manual_transcript = manual_transcript.replace(
                  "(side)", ""
              )
              manual_transcript = manual_transcript.replace(
                  "(dialect)", ""
              )
              manual_transcript = manual_transcript.replace(
                  "(robot)", ""
              )
              manual_transcript = manual_transcript.replace(
                  "(noise)", ""
              )
  
              if utt_id in BLACKLIST_IDS or manual_transcript == "":
                  continue
  
              transcript = []
  
              for semantic in utterance["semantic"]:
                  if len(semantic) == 2:
                      transcript.append(
                          f"{semantic[0]} FILL {semantic[1]}"
                      )
                  elif len(semantic) == 3:
                      transcript.append(
                          f"{semantic[0]}_{semantic[1]} FILL {semantic[2]}"
                      )
  
              transcript.append(manual_transcript)
  
              if len(transcript) > 0:
                  texts.append(
                      f"{utt_id} " + " SEP ".join(transcript) + "\n"
                  )
              else:
                  texts.append(f"{utt_id} SEP\n")
  
              wavs.append(f"{utt_id} {wav_path}\n")
              utt2spk.append(
                  f"{utt_id} {domain_dir.name}-{dialogue_id}\n"
              )
  
      return wavs, texts, utt2spk
  
imports: import json
  import os
  import string
  import sys
  from pathlib import Path
label_desc: Use image node_id 1 for calling a global function with example usage: _process_data(data) and returns: wavs,  texts,  utt2spk