code: def read_file(filelist, id=-1):
      json_lines = []
      with open(filelist, "r") as fo:
          lines = fo.readlines()
          lines = sorted(lines)
          for line in lines:
              line = line.strip()
              speaker = line.split("/")[id]
              speaker = list(speaker)
              speaker = "".join(speaker)
              meta = {
                  "audio_filepath": line,
                  "offset": 0,
                  "duration": None,
                  "label": speaker,
              }
              json_lines.append(meta)
      return json_lines
  
file_path: NeMo/scripts/speaker_tasks/filelist_to_manifest.py
imports: import argparse
  import json
  import os
  import random
  import librosa
  import numpy
  import soundfile
  import sox
  from sklearn.model_selection import StratifiedShuffleSplit
  from tqdm.contrib.concurrent import process_map
  from nemo.collections.asr.parts.utils.manifest_utils import read_manifest
label_desc: Use image node_id 4 for calling a global function with example usage: read_file(filelist, id) and returns: json_lines