code: def construct_cmd_script(args):
      """Construct command line string and write it into file"""
      total_client = args.num_client_proc * get_machine_count(
          args.ip_config
      )
      cmd_str = """#!/bin/bash
  SERVER_ID_LOW=$1
  SERVER_ID_HIGH=$2
  
  if [ -f "entity_emb-data-shape" ]; then
      echo "Delete temp files..."
      rm *-shape
  fi
  
  while [ $SERVER_ID_LOW -lt $SERVER_ID_HIGH ]
  do
      MKL_NUM_THREADS=1 OMP_NUM_THREADS=1 DGLBACKEND=pytorch dglke_server --model %s \
      --dataset %s --data_path %s --format %s --ip_config %s --hidden_dim %d --gamma %f --lr %f \
      --total_client %d --server_id $SERVER_ID_LOW &
      let SERVER_ID_LOW+=1
  done
  
  MKL_NUM_THREADS=1 OMP_NUM_THREADS=1 DGLBACKEND=pytorch dglke_client --model %s \
  --dataset %s --data_path %s --format %s --save_path %s --ip_config %s --batch_size %d \
  --neg_sample_size %d --hidden_dim %d --gamma %f --lr %f --max_step %d --log_interval %d \
  --num_thread %d --batch_size_eval %d --neg_sample_size_eval %d \
  --regularization_coef %f --num_client %d""" % (
          args.model_name,
          args.dataset,
          args.data_path,
          args.format,
          args.ip_config,
          args.hidden_dim,
          args.gamma,
          args.lr,
          total_client,
          args.model_name,
          args.dataset,
          args.data_path,
          args.format,
          args.save_path,
          args.ip_config,
          args.batch_size,
          args.neg_sample_size,
          args.hidden_dim,
          args.gamma,
          args.lr,
          args.max_step,
          args.log_interval,
          args.num_thread,
          args.batch_size_eval,
          args.neg_sample_size_eval,
          args.regularization_coef,
          args.num_client_proc,
      )
      if args.test == True:
          cmd_str += " --test"
      if args.no_save_emb == True:
          cmd_str += " --no_save_emb"
      if args.neg_adversarial_sampling == True:
          cmd_str += " -adv"
  
      file_path = os.path.join(args.path, SCRIPT_FILE)
      if os.path.exists(file_path):
          os.remove(file_path)
  
      f = open(file_path, "w")
      f.write(cmd_str)
      f.close()
  
      st = os.stat(file_path)
      os.chmod(file_path, st.st_mode | stat.S_IEXEC)
  
      return file_path
  
file_path: ogb/examples/lsc/wikikg90m/dgl-ke-ogb-lsc/python/dglke/dist_train.py
imports: import os
  import stat
  import sys
  import subprocess
  import argparse
  import socket
  from .utils import CommonArgParser
label_desc: Use image node_id 8 for calling a global function with example usage: construct_cmd_script(args) and returns: file_path