code: def _load_json_file(path, ordered=False):
      """Helper to return the loaded json from a given path
  
      Args:
          path (str): Relative path to config file being loaded
          ordered (bool): [optional] Boolean that indicates if the loaded JSON
              file should have its order maintained an object_pairs_hook=OrderdDict
  
      Returns:
          dict: The loaded contents of the JSON file specified by path
  
      Raises:
          ConfigError: Raised if any ValueErrors occur during json.load(...)
      """
      kwargs = {"object_pairs_hook": OrderedDict if ordered else None}
      with open(path) as data:
          try:
              return json.load(data, **kwargs)
          except ValueError:
              raise ConfigError(
                  "Invalid JSON format for {}".format(path)
              )
  
imports: from collections import defaultdict, OrderedDict
  import json
  import os
  import re
  from streamalert.shared import CLUSTERED_FUNCTIONS
  from streamalert.shared.exceptions import ConfigError
  from streamalert.shared.logger import get_logger
label_desc: Use image node_id 9 for calling a global function with example usage: _load_json_file(path, ordered) and returns: json