code: def get_model_list():
      ret = requests.post(args.controller_url + "/refresh_all_workers")
      assert ret.status_code == 200
      ret = requests.post(args.controller_url + "/list_models")
      models = ret.json()["models"]
      models.sort(key=lambda x: priority.get(x, x))
      logger.info(f"Models: {models}")
      return models
  
imports: import argparse
  import datetime
  import json
  import os
  import time
  import gradio
  import requests
  import tempfile
  import shutil
  from llamavid.conversation import default_conversation, conv_templates, SeparatorStyle
  from llamavid.constants import LOGDIR
  from llava.utils import build_logger, server_error_msg, violates_moderation, moderation_msg
  import hashlib
label_desc: Use image node_id 2 for calling a global function with example usage: get_model_list() and returns: models