code: def test_get_fasttext_model():
      text_data = [
          "hello",
          "world",
          "hello",
          "nice",
          "world",
          "hi",
          "world",
      ]
      counter = collections.Counter(text_data)
      vocab1 = Vocab(counter)
      matrix1 = load_embeddings(vocab1, "wiki.en")
      ft = get_fasttext_model("wiki.en")
      np.testing.assert_almost_equal(
          matrix1[vocab1["hello"]], ft["hello"], decimal=4
      )
      with pytest.raises(ValueError):
          get_fasttext_model("wiki.multi.ar")
  
file_path: gluon-nlp/tests/test_embedding.py
imports: import numpy
  import collections
  import os
  import tempfile
  import pytest
  from gluonnlp.embedding import load_embeddings, get_fasttext_model
  from gluonnlp.data import Vocab
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_fasttext_model() without return types