code: def test_text_file(self):
      with tempfile.NamedTemporaryFile() as f:
          f.write(b"Foo\nBar\n")
          f.flush()
  
          vocab, reverse_vocab = vocab_util.load_vocab(f.name)
          self.assertEqual(vocab, {"Foo": 0, "Bar": 1})
          self.assertEqual(reverse_vocab, {0: "Foo", 1: "Bar"})
  
file_path: data-validation/tensorflow_data_validation/utils/vocab_util_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tempfile
  from absl.testing import absltest
  import tensorflow
  from tensorflow_data_validation.utils import vocab_util
label_desc: Use image node_id 1 for calling the VocabUtilTest obj's underlying member method code with example usage: obj.test_text_file() without return types