code: def format_bpe_text(symbols, delimiter=b"@@"):
      """Convert a sequence of bpe words into sentence."""
      words = []
      word = b""
      if isinstance(symbols, str):
          symbols = symbols.encode()
      delimiter_len = len(delimiter)
      for symbol in symbols:
          if (
              len(symbol) >= delimiter_len
              and symbol[-delimiter_len:] == delimiter
          ):
              word += symbol[:-delimiter_len]
          else:  # end of a word
              word += symbol
              words.append(word)
              word = b""
      return b" ".join(words)
  
imports: from __future__ import print_function
  import codecs
  import collections
  import json
  import math
  import os
  import sys
  import time
  from distutils import version
  import tensorflow
label_desc: Use image node_id 13 for calling a global function with example usage: format_bpe_text(symbols, delimiter) and returns: bytes