code: def package_result(status: str, msg: str, data: dict):
      """
      Package message of response.
  
      Args:
           status(str): Error code
              ========   ==============================================================================================
              Code       Meaning
              --------   ----------------------------------------------------------------------------------------------
              '000'      Return results normally
              '101'      An error occurred in the predicting method
              '111'      Module is not available
              '112'      Use outdated and abandoned HTTP protocol format
              ========   ===============================================================================================
           msg(str): Detailed info for error
           data(dict): Result of predict api.
  
      Returns:
          dict: Message of response
  
      Examples:
          .. code-block:: python
  
              data = {'result': 0.002}
              package_result(status='000', msg='', data=data)
      """
      return {"status": status, "msg": msg, "results": data}
  
imports: import socket
  import threading
  import time
  import traceback
  from multiprocessing import Process
  from threading import Lock
  import requests
  from flask import Flask
  from flask import redirect
  from flask import request
  from flask import Response
  from paddlehub.serving.model_service.base_model_service import cv_module_info
  from paddlehub.serving.model_service.base_model_service import nlp_module_info
  from paddlehub.serving.model_service.base_model_service import v2_module_info
  from paddlehub.utils import log
  from paddlehub.utils import utils
label_desc: Use image node_id 1 for calling a global function with example usage: package_result(status, msg, data) and returns: dict