code: def test_vocab_file(self):
      vocab_file = os.path.join(self.get_temp_dir(), "vocab")
      self.encoder.save_to_file(vocab_file)
      encoder = subword_text_encoder.SubwordTextEncoder.load_from_file(
          vocab_file
      )
      self.assertEqual(encoder.subwords, self.vocab_list)
  
imports: from __future__ import unicode_literals
  import os
  from absl.testing import parameterized
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.deprecated.text import subword_text_encoder
  from tensorflow_datasets.core.deprecated.text import text_encoder
label_desc: Use image node_id 5 for calling the SubwordTextEncoderTest obj's underlying member method code with example usage: obj.test_vocab_file() without return types