code: def test_load_pretrained_embeddings(self):
      pretrained_emb = PretrainedEmbedding(EMBED_RAW_PATH)
  
      self.assertEqual(len(pretrained_emb.embed_vocab), VOCAB_SIZE)
      self.assertEqual(pretrained_emb.embed_vocab[0], "</s>")
      self.assertEqual(pretrained_emb.embed_vocab[2], "to")
  
      self.assertEqual(len(pretrained_emb.stoi), VOCAB_SIZE)
      self.assertEqual(pretrained_emb.stoi["</s>"], 0)
      self.assertEqual(pretrained_emb.stoi["to"], 2)
  
      self.assertEqual(
          pretrained_emb.embedding_vectors.size(0), VOCAB_SIZE
      )
      self.assertEqual(
          pretrained_emb.embedding_vectors.size(1), EMBED_DIM
      )
  
file_path: pytext/pytext/utils/tests/embeddings_utils_test.py
imports: import tempfile
  import unittest
  import numpy
  from pytext.common.constants import DatasetFieldName
  from pytext.config.field_config import DocLabelConfig, EmbedInitStrategy, FeatureConfig, WordFeatConfig, WordLabelConfig
  from pytext.data.featurizer import SimpleFeaturizer
  from pytext.utils.test import import_tests_module
  from pytorch.text.fb.utils.embeddings import PretrainedEmbedding
label_desc: Use image node_id 1 for calling the PretrainedEmbedsTest obj's underlying member method code with example usage: obj.test_load_pretrained_embeddings() without return types