code: def save_model(args, model, emap_file=None, rmap_file=None):
      if not os.path.exists(args.save_path):
          os.mkdir(args.save_path)
      print("Save model to {}".format(args.save_path))
      model.save_emb(args.save_path, args.dataset)
  
      # We need to save the model configurations as well.
      conf_file = os.path.join(args.save_path, "config.json")
      dict = {}
      config = args
      dict.update(vars(config))
      dict.update({"emp_file": emap_file, "rmap_file": rmap_file})
      with open(conf_file, "w") as outfile:
          json.dump(dict, outfile, indent=4)
  
file_path: ogb/examples/lsc/wikikg90m/dgl-ke-ogb-lsc/python/dglke/utils.py
imports: import math
  import os
  import csv
  import argparse
  import json
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: save_model(args, model, emap_file, rmap_file) without return types