code: def run_all(
      modules_info: dict,
      gpus: list,
      frontend_port: int,
      backend_port: int,
  ):
      """
      Run flask instance for frontend HTTP request and zmq device for backend zmq
      request.
  
      Args:
          modules_info(dict): modules info, include module name, version
          gpus(list): GPU devices index
          frontend_port(int): the port of PaddleHub-Serving frontend address
          backend_port(int): the port of PaddleHub-Serving zmq backend address
  
      Examples:
          .. code-block:: python
  
              modules_info = {'lac': {'init_args': {'version': '2.1.0'},
                                      'predict_args': {'batch_size': 1}}}
              run_all(modules_info, ['0', '1', '2'], 8866, 8867)
      """
      run_http_server(
          frontend_port, backend_port, modules_info.keys(), len(gpus)
      )
      MyIS = InferenceServer(modules_info, gpus)
      MyIS.listen(backend_port)
  
file_path: PaddleHub/paddlehub/serving/http_server.py
imports: import time
  import os
  import multiprocessing
  import platform
  from flask import Flask, request
  from paddlehub.serving.device import InferenceServer
  from paddlehub.serving.client import InferenceClientProxy
  from paddlehub.utils import utils, log
label_desc: Use image node_id 5 for calling a global function with example usage: run_all(modules_info, gpus, frontend_port, backend_port) without return types