code: def get_model_path(model_name, models_dir=MODELS_DIR):
      """
      Get path to given model, download it if it doesn't exist.
      """
      if model_name not in MODELS:
          raise ValueError(
              f"Model {model_name} not found in available models."
          )
      model_path = os.path.join(models_dir, model_name)
      if not os.path.exists(model_path) and models_dir == MODELS_DIR:
          download_models([model_name])
      return model_path
  
imports: import os
  from urllib import request
  from tqdm import tqdm
label_desc: Use image node_id 2 for calling a global function with example usage: get_model_path(model_name, models_dir) and returns: model_path