code: def compact_json(out_dict):
      return json.dumps(
          out_dict, separators=(",", ":"), ensure_ascii=False
      )
  
file_path: PGL/examples/kddcup2021/WikiKG90M/post_smoothing/transe/hadoop_prep.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  from __future__ import absolute_import
  import sys
  import yaml
  from easydict import EasyDict
  import argparse
  import numpy
  import json
  import six
label_desc: Use image node_id 1 for calling a global function with example usage: compact_json(out_dict) and returns: json