code: def sequence_to_text(sequence):
      """Converts a sequence of IDs back to a string"""
      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: fairseq/examples/textless_nlp/gslm/unit2speech/tacotron2/text.py
imports: import numpy
  import re
  from .None import cleaners
  from .symbols import symbols
label_desc: Use image node_id 4 for calling a global function with example usage: sequence_to_text(sequence) and returns: result