code: def test_get_word_index(self):
      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 = WordEmbedding.get_word_index(glove_path)
      assert word_index["the"] == 1
      assert word_index["for"] == 11
      assert word_index["as"] == 20
  
imports: import pytest
  import shutil
  from pyspark.sql.types import *
  from pyspark.sql.functions import lit
  from bigdl.dllib.feature.common import ChainedPreprocessing
  from bigdl.dllib.nncontext import *
  from bigdl.dllib.feature.image import *
  from bigdl.dllib.keras.layers import *
  from bigdl.dllib.keras.models import *
  from bigdl.dllib.nnframes import *
  from test.bigdl.test_zoo_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_get_word_index() without return types