code: def add_RemoteRouterServiceServicer_to_server(servicer, server):
      rpc_method_handlers = {
          "client_heartbeat": grpc.unary_unary_rpc_method_handler(
              servicer.client_heartbeat,
              request_deserializer=remote__router__pb2.HeartbeatRequest.FromString,
              response_serializer=remote__router__pb2.HeartbeatResponse.SerializeToString,
          ),
          "get_version": grpc.unary_unary_rpc_method_handler(
              servicer.get_version,
              request_deserializer=remote__router__pb2.VersionRequest.FromString,
              response_serializer=remote__router__pb2.VersionResponse.SerializeToString,
          ),
          "connect": grpc.unary_unary_rpc_method_handler(
              servicer.connect,
              request_deserializer=remote__router__pb2.ConnectRequest.FromString,
              response_serializer=remote__router__pb2.ConnectResponse.SerializeToString,
          ),
          "reconnect": grpc.unary_unary_rpc_method_handler(
              servicer.reconnect,
              request_deserializer=remote__router__pb2.ReconnectRequest.FromString,
              response_serializer=remote__router__pb2.ReconnectResponse.SerializeToString,
          ),
          "disconnect": grpc.unary_unary_rpc_method_handler(
              servicer.disconnect,
              request_deserializer=remote__router__pb2.DisconnectRequest.FromString,
              response_serializer=remote__router__pb2.DisconnectResponse.SerializeToString,
          ),
      }
      generic_handler = grpc.method_handlers_generic_handler(
          "RemoteRouterService", rpc_method_handlers
      )
      server.add_generic_rpc_handlers((generic_handler,))
  
file_path: aim/aim/ext/transport/proto/remote_router_pb2_grpc.py
imports: import aim.ext.transport.proto.remote_router_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: add_RemoteRouterServiceServicer_to_server(servicer, server) without return types