code: def download_model_by_name(model_name):
      if model_name.endswith(".model"):
          model_name = model_name[:-6]
  
      model = next((x for x in models if x[1] == model_name), None)
      if model is None:
          print("ERROR: Unknown model name '%s'." % model_name)
          list_available_models()
      else:
          download_model(model_name + ".model", model[2])
  
imports: from __future__ import print_function
  import os
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: download_model_by_name(model_name) without return types