class_docstr: Tests embedding related operations.
      
docstr: Tests the load_glove function.
          
code: def test_load_glove(self):
      """Tests the load_glove function."""
      word_vec_lines = ["word 1.2 3.4 5.6", "词 1. 3. 5."]
      glove_file = tempfile.NamedTemporaryFile(mode="w+")
      if Py3:
          glove_file.write("\n".join(word_vec_lines))
      else:
          glove_file.write("\n".join(word_vec_lines).encode("utf-8"))
      glove_file.flush()
      vocab = {"word": 0, "词": 1}
      word_vecs = np.zeros([2, 3])
  
      word_vecs = embedding.load_glove(
          glove_file.name, vocab, word_vecs
      )
  
      self.assertEqual(word_vecs.shape[0], 2)
      self.assertEqual(word_vecs.shape[1], 3)
      np.testing.assert_array_equal(word_vecs[0], [1.2, 3.4, 5.6])
      np.testing.assert_array_equal(word_vecs[1], [1.0, 3.0, 5.0])
  
file_path: texar/tests/data/embedding_test.py
imports: import sys
  import tempfile
  import numpy
  import tensorflow
  from texar.tf.data import embedding
label_desc: Use image node_id 1 for calling the EmbeddingTest obj's underlying member method code with example usage: obj.test_load_glove() without return types