code: def test_load_from_file(self):
      # Test a vocab file with words not wrapped with single quotes
      encoder = text_encoder.SubwordTextEncoder()
      correct_vocab = ["the", "and", "of"]
      vocab = io.StringIO("the\n" "and\n" "of\n")
      encoder._load_from_file_object(vocab)
      self.assertAllEqual(encoder.all_subtoken_strings, correct_vocab)
  
      # Test a vocab file with words wrapped in single quotes
      encoder = text_encoder.SubwordTextEncoder()
      vocab = io.StringIO('"the"\n' '"and"\n' '"of"\n')
      encoder._load_from_file_object(vocab)
      self.assertAllEqual(encoder.all_subtoken_strings, correct_vocab)
  
imports: import collections
  import io
  import os
  import random
  import shutil
  import string
  import mock
  from six.moves import range
  import tensorflow.compat.v1
  from trax.data import text_encoder
label_desc: Use image node_id 9 for calling the SubwordTextEncoderTest obj's underlying member method code with example usage: obj.test_load_from_file() without return types