code: def _maybe_trim_suffix(transcript):
      # stm files for the TEDLIUM release 1 train split contain a key (enclosed in
      # parens) at the end.
      splits = transcript.rsplit(" ", 1)
      transcript = splits[0]
      if len(splits) > 1:
          suffix = splits[-1]
          if not suffix.startswith("("):
              transcript += " " + suffix
      return transcript
  
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 3 for calling a global function with example usage: _maybe_trim_suffix(transcript) and returns: transcript