code: def _get_fasttext_model(
      models_storage: Union[pathlib.Path, str, None] = None
  ):
      """Return fasttext model."""
      fasttext = import_optional_property_dependency(
          module="fasttext", property_name="language"
      )
  
      model_name = FASTTEXT_LANG_MODEL.rsplit("/", maxsplit=1)[-1]
      model_path = get_create_model_storage(models_storage)
      model_path = model_path / "fasttext"
  
      if not model_path.exists():
          model_path.mkdir(parents=True)
  
      model_path = model_path / model_name
  
      # Save the model to a file
      if not model_path.exists():
          response = requests.get(FASTTEXT_LANG_MODEL, timeout=240)
          if response.status_code != 200:
              raise RuntimeError("Failed to donwload fasttext model")
          model_path.write_bytes(response.content)
  
      # This weird code is to suppress a warning from fasttext about a deprecated function
      try:
          fasttext.FastText.eprint = lambda *args, **kwargs: None
          fasttext_model = fasttext.load_model(str(model_path))
      except Exception as exp:
          raise exp
  
      return fasttext_model
  
file_path: deepchecks/deepchecks/nlp/utils/text_properties_models.py
imports: import logging
  import pathlib
  import warnings
  from contextlib import contextmanager
  from functools import lru_cache
  from importlib import import_module
  from typing import Optional, Union
  import requests
  from nltk import corpus
  from transformers.utils import logging
label_desc: Use image node_id 9 for calling a global function with example usage: _get_fasttext_model(models_storage) and returns: fasttext_model