code: def list_labels(root_path):
      txt_dir_path = os.path.join(root_path, "txt")
      wav_dir_path = os.path.join(root_path, "wav")
      categories = os.listdir(txt_dir_path)
      for category in categories:
          category_txt_path = os.path.join(txt_dir_path, category)
          category_wav_path = os.path.join(wav_dir_path, category)
          for label_filename in os.listdir(category_txt_path):
              if label_filename.endswith(".yaml"):
                  title = label_filename.replace(".yaml", "")
                  label_path = os.path.join(
                      category_txt_path, label_filename
                  )
                  wav_path = os.path.join(
                      category_wav_path, title + ".wav"
                  )
                  yield JKACPath(
                      label_path=label_path,
                      wav_path=wav_path,
                      category=category,
                      title=title,
                  )
  
imports: import argparse
  import os
  import re
  import sys
  from collections import namedtuple
  import yaml
label_desc: Use image node_id 2 for calling a global function with example usage: list_labels(root_path) without return types