code: def read_config(args):
      
  
      configfile = os.path.expanduser('~/.shakedown')
  
      if os.path.isfile(configfile):
          with open(configfile, 'r') as f:
              config = toml.loads(f.read())
  
          for key in config:
              param = key.replace('-', '_')
  
              if not param in args or args[param] in [False, None]:
                  args[param] = config[key]
  
      return args
docs: Read configuration options from ~/.shakedown (if exists)
  
          :param args: a dict of arguments
          :type args: dict
  
          :return: a dict of arguments
          :rtype: dict