code: def convert_to_unicode(text):
      """Converts `text` to Unicode (if it's not already), assuming utf-8 input."""
      if isinstance(text, str):
          return text
      elif isinstance(text, bytes):
          return text.decode("utf-8", "ignore")
      else:
          raise ValueError("Unsupported string type: %s" % (type(text)))
  
imports: import collections
  import sentencepiece
  import unicodedata
  from .args import str2bool
label_desc: Use image node_id 5 for calling a global function with example usage: convert_to_unicode(text) and returns: text, text