code: def preprocess_text(text, nlsyms) -> str:
      for nlsym in nlsyms:
          text = text.replace(nlsym, " ")
  
      # Note(jinchuan): not sure how should we treat a text
      # that is naturally with "<" or ">"
      if "<" in text or ">" in text:
          logging.warning(f"find an invalid text: {text}")
          text = text.replace("<", " ").replace(">", " ")
      text = " ".join(text.split())
      return text
  
file_path: espnet/egs2/owsm_v3/s2t1/local/kaldi_to_whisper.py
imports: import logging
  from argparse import ArgumentParser
  from io import BytesIO
  from multiprocessing import Pool
  from pathlib import Path
  import kaldiio
  import librosa
  import soundfile
  from utils import SYMBOL_NA, SYMBOL_NOSPEECH, SYMBOLS_TIME, LongUtterance, Utterance, generate_long_utterances
label_desc: Use image node_id 2 for calling a global function with example usage: preprocess_text(text, nlsyms) and returns: text