class_docstr: Test for text embedding exporter.
class_docstr_tok: ["Test","for","text","embedding","exporter","."]
code: def testExportTextEmbeddingModule(self):
      export_v2.export_module_from_file(
          embedding_file=self._embedding_file_path,
          export_path=self.get_temp_dir(),
          num_oov_buckets=1,
          num_lines_to_ignore=0,
          num_lines_to_use=None,
      )
      hub_module = hub.load(self.get_temp_dir())
      tokens = tf.constant(
          ["cat", "cat cat", "lizard. dog", "cat? dog", ""]
      )
      embeddings = hub_module(tokens)
      self.assertAllClose(
          embeddings.numpy(),
          [
              [1.11, 2.56, 3.45],
              [1.57, 3.62, 4.88],
              [0.70, 1.41, 2.12],
              [1.49, 3.22, 4.56],
              [0.0, 0.0, 0.0],
          ],
          rtol=0.02,
      )
  
file_path: hub/examples/text_embeddings_v2/export_test_v2.py
imports: import logging
  import os
  import numpy
  import tensorflow
  import tensorflow_hub
  from examples.text_embeddings_v2 import export_v2
label_desc: Use image node_id 3 for calling the ExportTokenEmbeddingTest obj's underlying member method code with example usage: obj.testExportTextEmbeddingModule() without return types