class_docstr: Tests embedding related operations.
      
docstr: Tests :class:`texar.tf.data.embedding.Embedding`.
          
code: def test_embedding(self):
      """Tests :class:`texar.tf.data.embedding.Embedding`."""
      vocab = {"word": 0, "词": 1}
      emb = embedding.Embedding(vocab)
      self.assertEqual(len(emb.word_vecs), len(vocab))
  
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 3 for calling the EmbeddingTest obj's underlying member method code with example usage: obj.test_embedding() without return types