class_docstr: User-friendly :class:`dict` supports:
  
  * load and save for json/pickle format (.json/.pkl)
  * easy key/value access as config.key or config["key"]
  * compatible with :class:`dict`
  
  :param kwargs: key-value pairs to initialize the configuration
  :type kwargs: dict
class_docstr_tok: ["User-friendly",":","class",":","`","dict","`","supports",":","*","load","and","save","for","json\/pickle","format","(",".json\/.pkl",")","*","easy","key\/value","access","as","config.key","or","config","[","``","key","''","]","*","compatible","with",":","class",":","`","dict","`",":","param","kwargs",":","key-value","pairs","to","initialize","the","configuration",":","type","kwargs",":","dict"]
docstr: Load config parameters from JSON/pickle file
  
  :param filename: file name ends with [.json|.pkl]
  :type filename: string
  :return: configuration parsed from file
  :rtype: aup.BasicConfig
docstr_tok: ["Load","config","parameters","from","JSON\/pickle","file",":","param","filename",":","file","name","ends","with","[",".json|.pkl","]",":","type","filename",":","string",":","return",":","configuration","parsed","from","file",":","rtype",":","aup.BasicConfig"]
code: def load(self, filename):
      """Load config parameters from JSON/pickle file
  
      :param filename: file name ends with [.json|.pkl]
      :type filename: string
      :return: configuration parsed from file
      :rtype: aup.BasicConfig
      """
      name = "_load_" + BasicConfig._get_format(filename)
      func = getattr(self, name)
      data = func(filename)
      if type(data) is not dict:
          raise TypeError("Config must be dict")
      self.update(data)
      logger.debug(
          "Load config from %s: %s" % (filename, data.__str__())
      )
      return self
  
imports: from __future__ import print_function
  import logging
  import json
  import pickle
  import sys
  import inspect
  import functools
  import os
  import shutil
label_desc: Use image node_id 1 for calling the BasicConfig obj's underlying member method code with example usage: obj.load(filename) and returns: self