code: def read_json(config_file):
      """Read from json file."""
      try:
          with open(config_file, "r") as _file:
              config = json.load(_file, object_pairs_hook=OrderedDict)
              _file.close()
      except Exception as e:
          raise Exception(
              "Error in loading config file: "
              + config_file
              + ".\n -- "
              + str(e)
          )
      return load_parameters(config)
  
file_path: dragonfly/dragonfly/parse/config_parser.py
imports: from __future__ import absolute_import
  import sys
  import json
  from collections import OrderedDict
  from numbers import Number
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: read_json(config_file) and returns: load_parameters