code: def prepare_embedding_config(args):
      """Specify configuration of embeddings."""
      # Device
      args.ent_emb_on_cpu = args.mix_cpu_gpu
      # As the number of relations in KGs is relatively small, we put relation
      # emebddings on GPUs by default to speed up training.
      args.rel_emb_on_cpu = False
  
      print(
          ("-" * 40) + "\n        Device Setting        \n" + ("-" * 40)
      )
      ent_place = "cpu" if args.ent_emb_on_cpu else "gpu"
      rel_place = "cpu" if args.rel_emb_on_cpu else "gpu"
      print(" Entity   embedding place: {}".format(ent_place))
      print(" Relation embedding place: {}".format(rel_place))
      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 4 for calling a global function with example usage: prepare_embedding_config(args) and returns: args