code: def config(conf, confdefs):
      '''
      Initialize a config dict using the given confdef tuples.
      '''
      conf = conf.copy()
  
      # for now just populate defval
      for name, info in confdefs:
          conf.setdefault(name, info.get('defval'))
  
      return conf config(conf, confdefs):
      '''
      Initialize a config dict using the given confdef tuples.
      '''
      conf = conf.copy()
  
      # for now just populate defval
      for name, info in confdefs:
          conf.setdefault(name, info.get('defval'))
  
      return conf
docs: Initialize a config dict using the given confdef tuples.