code: def prepare_model_config(args):
      """Standardizing str arguments."""
      args.model_name = args.model_name.lower()
      if args.async_update:
          print("=" * 20 + "\n Async Update!\n" + "=" * 20)
      if args.async_update and not args.mix_cpu_gpu:
          raise ValueError(
              "We only support async_update in mix_cpu_gpu mode."
          )
      if args.reg_coef > 0:
          assert (
              args.reg_norm >= 0
          ), "norm of regularization is negative!"
      if args.reg_type == "norm_er":
          args.use_embedding_regularization = args.reg_coef > 0
      else:
          args.use_embedding_regularization = (
              args.quate_lmbda1 > 0
          ) or (args.quate_lmbda2 > 0)
  
      # Dimension
      if args.model_name == "rotate":
          args.ent_dim = args.embed_dim * 2
          args.rel_dim = args.embed_dim
      elif args.model_name == "complex":
          args.ent_dim = args.embed_dim * 2
          args.rel_dim = args.embed_dim * 2
      elif args.model_name == "quate":
          args.ent_dim = args.embed_dim * 4
          args.rel_dim = args.embed_dim * 4
      elif args.model_name == "ote":
          args.ent_dim = args.embed_dim
          args.rel_dim = args.embed_dim * (
              args.ote_size + int(args.ote_scale > 0)
          )
      else:
          args.ent_dim = args.embed_dim
          args.rel_dim = args.embed_dim
      print(
          "-" * 40 + "\n       Embedding Setting      \n" + ("-" * 40)
      )
      print(" Entity   embedding dimension: {}".format(args.ent_dim))
      print(" Relation embedding dimension: {}".format(args.rel_dim))
      print(("-" * 40))
      return args
  
file_path: PGL/apps/Graph4KG/config.py
imports: import os
  import sys
  import math
  import json
  import warnings
  from argparse import ArgumentParser
  import paddle.distributed
label_desc: Use image node_id 5 for calling a global function with example usage: prepare_model_config(args) and returns: args