code: def download_model_and_get_path(task, model_name):
      model_path = os.path.join(mii_cache_path(), model_name)
      if not os.path.isdir(model_path):
          os.makedirs(model_path)
  
      if model_name in supported_models_from_huggingface():
          _download_hf_model_to_path(task, model_name, model_path)
      else:
          assert False, "Only models from HF supported so far"
  
      return model_path
  
file_path: deepspeed-mii/mii/legacy/models/utils.py
imports: import os
  from mii.legacy.utils import mii_cache_path
label_desc: Use image node_id 3 for calling a global function with example usage: download_model_and_get_path(task, model_name) and returns: model_path