code: def get_unused_dialogs(data_folder):
      """
      Get the dialogs to be process for the test2 new corpus.
  
      Arguments
      ---------
      data_folder: str
          Path where folders S0272 and E0024 are stored.
  
      Returns
      -------
      list of str
      """
  
      # Used dialogs
      proc = subprocess.Popen(
          "egrep -a '<dialogue' "
          + data_folder
          + "/E0024/MEDIA1FR_00/MEDIA1FR/DATA/media_*.xml "
          + "| cut -d' ' -f2 "
          + "| cut -d'"
          + '"'
          + "' -f2",
          stdout=subprocess.PIPE,
          shell=True,
      )
      used_dialogs = [str(i)[2:-3] for i in proc.stdout.readlines()]
      # All dialogs
      all_dialogs = glob.glob(
          data_folder + "/S0272/**/*.wav", recursive=True
      )
      all_dialogs = [e.split("/")[-1][:-4] for e in all_dialogs]
      # Unused dialogs
      unused_dialogs = []
      for dialog in all_dialogs:
          if dialog not in used_dialogs:
              unused_dialogs.append(dialog)
  
      return unused_dialogs
  
imports: import xml.dom.minidom
  from tqdm import tqdm
  import logging
  import subprocess
  import csv
  import os
  import glob
  import re
label_desc: Use image node_id 23 for calling a global function with example usage: get_unused_dialogs(data_folder) and returns: unused_dialogs