code: def sequence_to_text(sequence, tp=None, add_blank=False):
      """Converts a sequence of IDs back to a string"""
      # pylint: disable=global-statement
      global _id_to_symbol, _symbols
      if add_blank:
          sequence = list(
              filter(lambda x: x != len(_symbols), sequence)
          )
  
      if tp:
          _symbols, _ = make_symbols(**tp)
          _id_to_symbol = {i: s for i, s in enumerate(_symbols)}
  
      result = ""
      for symbol_id in sequence:
          if symbol_id in _id_to_symbol:
              s = _id_to_symbol[symbol_id]
              # Enclose ARPAbet back in curly braces:
              if len(s) > 1 and s[0] == "@":
                  s = "{%s}" % s[1:]
              result += s
      return result.replace("}{", " ")
  
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 7 for calling a global function with example usage: sequence_to_text(sequence, tp, add_blank) and returns: result