code: def _GetVocabularyFromFile(vocabulary_path):
      """Read a vocabulary in from a file."""
      vocab = []
      with tf.io.gfile.GFile(vocabulary_path, "r") as reader:
          while True:
              # Get the next line (incl. \n), and break if nothing is left to read.
              text = reader.readline()
              if not text:
                  break
  
              # Convert the raw text and strip whitespace.
              if isinstance(text, str):
                  token = text
              elif isinstance(text, bytes):
                  token = text.decode("utf-8", "ignore")
              token = token.rstrip(os.linesep)
              vocab.append(token)
      return vocab
  
imports: import os
  import tensorflow
  from tensorflow.python.ops import lookup_ops
  from tensorflow.python.ops.ragged import ragged_conversion_ops
  from tensorflow_text.python.ops import unicode_script_tokenizer
  from tensorflow_text.python.ops import whitespace_tokenizer
  from tensorflow_text.python.ops import wordpiece_tokenizer
label_desc: Use image node_id 1 for calling a global function with example usage: _GetVocabularyFromFile(vocabulary_path) and returns: vocab