code: def run_server(
      model_path: str,
      host: str,
      port: int,
      allowed_origins: list,
  ) -> None:
      """Loads a pre-trained model and serve it on an http server.
  
      # Inputs
  
      :param model_path: (str) filepath to pre-trained model.
      :param host: (str, default: `0.0.0.0`) host ip address for the server to use.
      :param port: (int, default: `8000`) port number for the server to use.
      :param allowed_origins: (list) list of origins allowed to make cross-origin requests.
  
      # Return
  
      :return: (`None`)
      """
      # Use local backend for serving to use pandas DataFrames.
      model = LudwigModel.load(model_path, backend="local")
      app = server(model, allowed_origins)
      uvicorn.run(app, host=host, port=port)
  
imports: import argparse
  import io
  import json
  import logging
  import os
  import sys
  import tempfile
  import pandas
  import torch
  from torchvision.io import decode_image
  from ludwig.api import LudwigModel
  from ludwig.constants import AUDIO, COLUMN
  from ludwig.contrib import add_contrib_callback_args
  from ludwig.globals import LUDWIG_VERSION
  from ludwig.utils.print_utils import get_logging_level_registry, print_ludwig
  from ludwig.utils.server_utils import NumpyJSONResponse
label_desc: Use image node_id 6 for calling a global function with example usage: run_server(model_path, host, port, allowed_origins) without return types