code: def get_fasttext_model(model_name_or_dir="cc.en.300"):
      """ Load fasttext model from the binaray file
  
      This method will load fasttext model binaray file from a given file path or remote sources,
      and return a `fasttext` model object. See `fasttext.cc` for more usage information.
  
      Available sources:
      ['wiki-news-300d-1M-subword', 'crawl-300d-2M-subword', \
       'cc.af.300', ..., 'cc.en.300', ..., 'wiki.aa', ..., 'wiki.en', ..., 'wiki.zu']
      Detailed sources can be founded by `gluonnlp.embedding.list_sources('FastText.bin')`
  
      Parameters
      ----------
      model_name_or_dir : str, default 'cc.en.300'
          A file path for a FastText binary file or the name of the FastText model.
          This method would first check if it is a file path.
          If not, the method will load from cache or download.
  
      Returns
      -------
      fasttext.FastText._FastText:
          A FastText model based on `fasttext` package.
      """
      if os.path.exists(model_name_or_dir):
          file_path = model_name_or_dir
      else:
          source = model_name_or_dir
          root_path = os.path.expanduser(
              os.path.join(get_home_dir(), "embedding")
          )
          embedding_dir = os.path.join(root_path, "fasttext")
          if source not in C.FAST_TEXT_BIN_SHA1:
              raise ValueError(
                  "Cannot recognize {} for the bin file".format(source)
              )
          file_name, file_hash = C.FAST_TEXT_BIN_SHA1[source]
          file_path = _get_file_path("fasttext", file_name, file_hash)
      return fasttext.load_model(file_path)
  
file_path: gluon-nlp/src/gluonnlp/embedding/embed_loader.py
imports: import io
  import logging
  import os
  import warnings
  import fasttext
  import numpy
  from mxnet.gluon.utils import download, check_sha1, _get_repo_file_url
  from .None import _constants
  from ..base import get_home_dir
  from ..data import Vocab
label_desc: Use image node_id 9 for calling a global function with example usage: get_fasttext_model(model_name_or_dir) and returns: fasttext