code: def serve_inference(inference_pipeline, port):
      _do_serve(ModelResponse(inference_pipeline), port)
  
imports: import asyncio
  from concurrent import futures
  import logging
  import grpc
  from google.protobuf import empty_pb2
  from .proto import legacymodelresponse_pb2_grpc
  import sys
  import threading
  import time
  from mii.legacy.constants import GRPC_MAX_MSG_SIZE, CREATE_SESSION_METHOD, DESTROY_SESSION_METHOD, TERMINATE_METHOD, LB_MAX_WORKER_THREADS, SERVER_SHUTDOWN_TIMEOUT, TaskType
  from mii.legacy.method_table import GRPC_METHOD_TABLE
  from mii.legacy.client import create_channel
  from mii.legacy.utils import unpack_proto_query_kwargs
label_desc: Use image node_id 3 for calling a global function with example usage: serve_inference(inference_pipeline, port) without return types