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: espnet/egs2/owsm_v2/s2t1/local/prepare_tedlium_filtered.py
imports: from argparse import ArgumentParser
  from collections import defaultdict
  from pathlib import Path
  from typing import Dict, List, Optional, Tuple, Union
  from utils import SYMBOL_NA, SYMBOL_NOSPEECH, SYMBOLS_TIME, LongUtterance, Utterance, generate_long_utterances
label_desc: Use image node_id 1 for calling a global function with example usage: _maybe_trim_suffix(transcript) and returns: transcript