code: def verify_config(self, config):
      check_missing_key(
          config,
          "n_samples",
          "Specify number of samples to randomly draw",
          log=logger,
      )
  
      if os.path.exists(self.expt_dir):
          logger.warning("Removing folder %s" % self.expt_dir)
          shutil.rmtree(self.expt_dir)
      os.mkdir(self.expt_dir)
      return config
  
file_path: auptimizer/src/aup/Proposer/SpearmintProposer.py
imports: import importlib
  import logging
  import os
  import shutil
  from six.moves import input
  from .AbstractProposer import AbstractProposer
  from .spearmint import ExperimentGrid
  from ..aup import BasicConfig
  from ..utils import set_default_keyvalue, check_missing_key, get_from_options
label_desc: Use image node_id 8 for calling the SpearmintProposer obj's underlying member method code with example usage: obj.verify_config(config) and returns: config