code: def start_server(args):
      """Start kvstore service"""
      th.set_num_threads(NUM_THREAD)
  
      server_namebook = dgl.contrib.read_ip_config(
          filename=args.ip_config
      )
  
      port = server_namebook[args.server_id][2]
      if check_port_available(port) == False:
          print("Error: port %d is not available." % port)
          exit()
  
      my_server = KGEServer(
          server_id=args.server_id,
          server_namebook=server_namebook,
          num_client=args.total_client,
      )
  
      my_server.set_clr(args.lr)
  
      if (
          my_server.get_id() % my_server.get_group_count() == 0
      ):  # master server
          (
              g2l,
              entity_emb,
              entity_emb_state,
              relation_emb,
              relation_emb_state,
          ) = get_server_data(args, my_server.get_machine_id())
          my_server.set_global2local(
              name="entity_emb", global2local=g2l
          )
          my_server.init_data(
              name="relation_emb", data_tensor=relation_emb
          )
          my_server.init_data(
              name="relation_emb_state", data_tensor=relation_emb_state
          )
          my_server.init_data(name="entity_emb", data_tensor=entity_emb)
          my_server.init_data(
              name="entity_emb_state", data_tensor=entity_emb_state
          )
      else:  # backup server
          my_server.set_global2local(name="entity_emb")
          my_server.init_data(name="relation_emb")
          my_server.init_data(name="relation_emb_state")
          my_server.init_data(name="entity_emb")
          my_server.init_data(name="entity_emb_state")
  
      print("KVServer %d listen for requests ..." % my_server.get_id())
  
      my_server.start()
  
imports: import os
  import argparse
  import time
  import socket
  import sys
  import dgl
  from dgl.contrib import KVServer
  import torch
  from .train_pytorch import load_model
  from .dataloader import get_server_partition_dataset
label_desc: Use image node_id 3 for calling a global function with example usage: start_server(args) without return types