code: def _extract_audio_segment(sph_path, channel, start_sec, end_sec):
      """Extracts segment of audio samples (as an ndarray) from the given path."""
      with tf.io.gfile.GFile(sph_path, "rb") as f:
          segment = tfds.core.lazy_imports.pydub.AudioSegment.from_file(
              f, format="nistsphere"
          )
      # The dataset only contains mono audio.
      assert segment.channels == 1
      assert channel == 1
      start_ms = int(start_sec * 1000)
      end_ms = int(end_sec * 1000)
      segment = segment[start_ms:end_ms]
      samples = np.array(segment.get_array_of_samples())
      return samples
  
file_path: datasets/tensorflow_datasets/datasets/tedlium/tedlium_dataset_builder.py
imports: import os
  import re
  from etils import epath
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 5 for calling a global function with example usage: _extract_audio_segment(sph_path, channel, start_sec, end_sec) and returns: samples