code: def test_existing_vocab(self, vocab_size, embed_dim):
      existing_vocab = tf.ones([vocab_size, embed_dim])
      e = embed.Embed(existing_vocab=existing_vocab)
      self.assertEqual(e.vocab_size, vocab_size)
      self.assertEqual(e.embed_dim, embed_dim)
      self.assertAllEqual(e.embeddings.read_value(), existing_vocab)
  
file_path: sonnet/sonnet/src/embed_test.py
imports: from absl.testing import parameterized
  from sonnet.src import embed
  from sonnet.src import initializers
  from sonnet.src import test_utils
  import tensorflow
label_desc: Use image node_id 3 for calling the EmbedTest obj's underlying member method code with example usage: obj.test_existing_vocab(vocab_size, embed_dim) without return types