code: def pad_with_eos_bos(phoneme_sequence, tp=None):
      # pylint: disable=global-statement
      global _phonemes_to_id, _bos, _eos
      if tp:
          _bos = tp["bos"]
          _eos = tp["eos"]
          _, _phonemes = make_symbols(**tp)
          _phonemes_to_id = {s: i for i, s in enumerate(_phonemes)}
  
      return (
          [_phonemes_to_id[_bos]]
          + list(phoneme_sequence)
          + [_phonemes_to_id[_eos]]
      )
  
file_path: TTS/TTS/tts/utils/text/__init__.py
imports: import re
  from packaging import version
  import phonemizer
  from phonemizer.phonemize import phonemize
  from TTS.tts.utils.text import cleaners
  from TTS.tts.utils.text.symbols import make_symbols, symbols, phonemes, _phoneme_punctuations, _bos, _eos
label_desc: Use image node_id 3 for calling a global function with example usage: pad_with_eos_bos(phoneme_sequence, tp) and returns: unknown