code: def test_save_and_reload(self):
      corpus = "the quick brown fox jumps over the lazy dog"
      token_counts = collections.Counter(corpus.split(" "))
  
      # Deliberately exclude some required encoding chars from the alphabet
      # and token list, making some strings unencodable.
      encoder = text_encoder.SubwordTextEncoder.build_to_target_size(
          100, token_counts, 2, 10
      )
  
      filename = os.path.join(self.test_temp_dir, "out.voc")
      encoder.store_to_file(filename)
      new_encoder = text_encoder.SubwordTextEncoder(filename)
  
      self.assertEqual(encoder._alphabet, new_encoder._alphabet)
      self.assertEqual(
          encoder.all_subtoken_strings, new_encoder.all_subtoken_strings
      )
      self.assertEqual(
          encoder._subtoken_string_to_id,
          new_encoder._subtoken_string_to_id,
      )
      self.assertEqual(
          encoder._max_subtoken_len, new_encoder._max_subtoken_len
      )
  
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 11 for calling the SubwordTextEncoderTest obj's underlying member method code with example usage: obj.test_save_and_reload() without return types