code: def convert_to_unicode(text):
      """Converts `text` to Unicode (if it's not already), assuming utf-8 input."""
      if isinstance(text, bytes):
          return text.decode("utf-8")
      elif isinstance(text, str):
          return text
      else:
          raise TypeError(f"Unexpected type {type(text)}")
  
imports: import importlib_resources
  import torch
  import sentencepiece
label_desc: Use image node_id 1 for calling a global function with example usage: convert_to_unicode(text) and returns: text, text