docstr: Load Config File - file path or dict
  
  Args:
      config (str/dict): path to config json/yaml file or dict pre-loaded
      variables: dictionary of the current globals/locals symbol table
docstr_tok: ["Load","Config","File","-","file","path","or","dict","Args",":","config","(","str\/dict",")",":","path","to","config","json\/yaml","file","or","dict","pre-loaded","variables",":","dictionary","of","the","current","globals\/locals","symbol","table"]
code: def _load_config(config, variables: dict):
      """
      Load Config File - file path or dict
  
      Args:
          config (str/dict): path to config json/yaml file or dict pre-loaded
          variables: dictionary of the current globals/locals symbol table
      """
      _result = dict()
      if not (config is None):
          if type(config) == str:
              _result = Configuration._load(Path(config))
          elif type(config) == dict:
              _result = config
          else:
              raise CompilerException(
                  "Unsupported config format, %s" % config
              )
  
          # -- Start Rendering --
          if not (variables is None):
              Configuration.render_config(
                  contents=_result[Constant.CONTENT_LIST.value],
                  variables=variables,
              )
      return _result
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import warnings
  import json
  from enum import Enum
  from importlib import import_module
  from pathlib import Path
  import numpy
  import pandas
  import yaml
  from jsonschema import validate
  from xai.exception import CompilerException
  from xai.formatter import Report
label_desc: Use image node_id 3 for calling the Configuration obj's underlying member method code with example usage: obj._load_config(config, variables) and returns: _result