code: def add_ModelResponseServicer_to_server(servicer, server):
      rpc_method_handlers = {
          "Terminate": grpc.unary_unary_rpc_method_handler(
              servicer.Terminate,
              request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
              response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
          ),
          "GeneratorReply": grpc.unary_unary_rpc_method_handler(
              servicer.GeneratorReply,
              request_deserializer=modelresponse__pb2.MultiStringRequest.FromString,
              response_serializer=modelresponse__pb2.MultiGenerationReply.SerializeToString,
          ),
          "GeneratorReplyStream": grpc.unary_stream_rpc_method_handler(
              servicer.GeneratorReplyStream,
              request_deserializer=modelresponse__pb2.MultiStringRequest.FromString,
              response_serializer=modelresponse__pb2.MultiGenerationReply.SerializeToString,
          ),
      }
      generic_handler = grpc.method_handlers_generic_handler(
          "modelresponse.ModelResponse", rpc_method_handlers
      )
      server.add_generic_rpc_handlers((generic_handler,))
  
file_path: deepspeed-mii/mii/grpc_related/proto/modelresponse_pb2_grpc.py
imports: import grpc
  from google.protobuf import empty_pb2
  import mii.grpc_related.proto.modelresponse_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: add_ModelResponseServicer_to_server(servicer, server) without return types