code: def write_config_file(self, params, path):
          
          cfgp = ConfigParser()
          cfgp.add_section(params['name'])
          for p in params:
              if p == 'name':
                  continue
              cfgp.set(params['name'], p, params[p])
          f = open(os.path.join(path, 'experiment.cfg'), 'w')
          cfgp.write(f)
          f.close()
docs: write a config file for this single exp in the folder path.