code: def _load(self, config):
          
          if isstring(config):
              self.filename = config
              params = yaml.load(open(config))
          elif isinstance(config, Config):
              # This is the copy constructor...
              self.filename = config.filename
              params = copy.deepcopy(config)
          elif isinstance(config, dict):
              params = copy.deepcopy(config)
          elif config is None:
              params = {}
          else:
              raise Exception('Unrecognized input')
  
          return params
docs: Load this config from an existing config 
  
          Parameters:
          -----------
          config : filename, config object, or dict to load
  
          Returns:
          --------
          params : configuration parameters