code: def read_split_file(split_file):
      """
      Read a split file which contains the list of audio files/segments
      belonging to a split/subset.
      Line example:
          - ex01_confused_00366
          - ex04_narration_longform_00001	(13.87s,27.74s)
          - ex03-ex01_confused_001	(,60.0s)
      """
      files = []
      with open(split_file) as f:
          for line in f:
              if line[0] == "#":
                  continue
              fname, *segment = line.strip().split("\t")
              if len(segment) == 0:
                  segment = (None, None)
              else:
                  assert len(segment) == 1, (segment, line)
                  segment = segment[0]
                  assert segment[0] == "(" and segment[-1] == ")", (
                      segment,
                      line,
                  )
                  assert len(segment.split(",")) == 2, (segment, line)
                  start, end = segment[1:-1].split(",")
                  start = (
                      None if start == "" else float(start.strip("s"))
                  )
                  end = None if end == "" else float(end.strip("s"))
                  segment = (start, end)
  
              files.append((fname, segment))
      print(f"Read {len(files)} files from {split_file}")
      return files
  
file_path: textlesslib/examples/expresso/dataset/processing/create_short_segments_dataset.py
imports: import os
  from tqdm import tqdm
  import soundfile
  from pathlib import Path
  from time import time
  from collections import defaultdict
label_desc: Use image node_id 2 for calling a global function with example usage: read_split_file(split_file) and returns: files