code: def test_words_to_word_id(self):
      words = tl.files.load_matt_mahoney_text8_dataset()
      vocabulary_size = 50000
      (
          data,
          count,
          dictionary,
          reverse_dictionary,
      ) = tl.nlp.build_words_dataset(words, vocabulary_size, True)
      ids = tl.nlp.words_to_word_ids(words, dictionary)
      context = tl.nlp.word_ids_to_words(ids, reverse_dictionary)
  
file_path: TensorLayer/tests/test_nlp.py
imports: import os
  import unittest
  import nltk
  import tensorlayer
  from tests.utils import CustomTestCase
label_desc: Use image node_id 9 for calling the Test_Leaky_ReLUs obj's underlying member method code with example usage: obj.test_words_to_word_id() without return types