code: def __init__(self):
      super(ArgParser, self).__init__()
  
      self.add_argument(
          "--model_name",
          default="TransE",
          choices=[
              "TransE",
              "TransE_l1",
              "TransE_l2",
              "TransR",
              "RESCAL",
              "DistMult",
              "ComplEx",
              "RotatE",
          ],
          help="model to use",
      )
      self.add_argument(
          "--data_path",
          type=str,
          default="../data",
          help="root path of all dataset",
      )
      self.add_argument(
          "--dataset",
          type=str,
          default="FB15k",
          help="dataset name, under data_path",
      )
      self.add_argument(
          "--format",
          type=str,
          default="built_in",
          help="the format of the dataset, it can be built_in,"
          "raw_udd_{htr} and udd_{htr}",
      )
      self.add_argument(
          "--hidden_dim",
          type=int,
          default=256,
          help="hidden dim used by relation and entity",
      )
      self.add_argument(
          "--lr", type=float, default=0.0001, help="learning rate"
      )
      self.add_argument(
          "-g", "--gamma", type=float, default=12.0, help="margin value"
      )
      self.add_argument(
          "--gpu",
          type=int,
          default=[-1],
          nargs="+",
          help="a list of active gpu ids, e.g. 0",
      )
      self.add_argument(
          "--mix_cpu_gpu",
          action="store_true",
          help="mix CPU and GPU training",
      )
      self.add_argument(
          "-de",
          "--double_ent",
          action="store_true",
          help="double entitiy dim for complex number",
      )
      self.add_argument(
          "-dr",
          "--double_rel",
          action="store_true",
          help="double relation dim for complex number",
      )
      self.add_argument(
          "--num_thread",
          type=int,
          default=1,
          help="number of thread used",
      )
      self.add_argument(
          "--server_id",
          type=int,
          default=0,
          help="Unique ID of each server",
      )
      self.add_argument(
          "--ip_config",
          type=str,
          default="ip_config.txt",
          help="IP configuration file of kvstore",
      )
      self.add_argument(
          "--total_client",
          type=int,
          default=1,
          help="Total number of client worker nodes",
      )
  
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 1 to create a new ArgParser object from inherited base classes: argparse with example: obj = ArgParser()