code: def test_word_embedding_with_word_index(self):
      model = Sequential()
      resource_path = os.path.join(
          os.path.split(__file__)[0], "../../../resources"
      )
      glove_path = os.path.join(
          resource_path, "glove.6B/glove.6B.50d.txt"
      )
      word_index = {"with": 1, "is": 2, "him": 3, "have": 4}
      embedding = WordEmbedding(glove_path, word_index, input_length=30)
      model.add(embedding)
      input_data = np.random.randint(5, size=(4, 30))
      self.assert_forward_backward(model, input_data)
  
imports: import pytest
  import shutil
  from zoo.feature.common import ChainedPreprocessing
  from zoo.feature.image import *
  from zoo.pipeline.api.keras.layers import *
  from zoo.pipeline.api.keras.models import *
  from test.zoo.pipeline.utils.test_utils import ZooTestCase
label_desc: Use image node_id 16 for calling the TestSimpleIntegration obj's underlying member method code with example usage: obj.test_word_embedding_with_word_index() without return types