code: def models_from_server(
      url: str, **model_kw
  ) -> dict[str, RemoteModel]:
      """Wrap all the models on a given LIT server."""
      server_info = query_lit_server(url, "get_info")
      models = {}
      for name in server_info["models"]:
          models[name] = RemoteModel(url, name, **model_kw)
      return models
  
file_path: lit/lit_nlp/components/remote_model.py
imports: from typing import Any, Optional
  import urllib
  from absl import logging
  from lit_nlp.api import model
  from lit_nlp.api import types
  from lit_nlp.lib import serialize
  import requests
  import six
label_desc: Use image node_id 2 for calling a global function with example usage: models_from_server(url) and returns: models