code: def __del__(self):
      raise NotImplementedError(
          "The CMA chooser is not yet implemented!"
      )
      self.locker.lock_wait(self.state_pkl)
  
      # Write the hyperparameters out to a Pickle.
      fh = tempfile.NamedTemporaryFile(mode="wb", delete=False)
  
      # do this to save the optimizer state
      #    >>> pickle.dump(es, open('saved-cma-object.pkl', 'wb'))
  
      # and this to load it back...
      #    >>> es = pickle.load(open('saved-cma-object.pkl', 'rb'))
  
      pickle.dump(
          {
              "dims": self.D,
              "ls": self.ls,
              "amp2": self.amp2,
              "noise": self.noise,
              "mean": self.mean,
          },
          fh,
      )
      fh.close()
  
      # Use an atomic move for better NFS happiness.
      cmd = 'mv "%s" "%s"' % (fh.name, self.state_pkl)
      os.system(
          cmd
      )  # TODO: Should check system-dependent return status.
  
      self.locker.unlock(self.state_pkl)
  
file_path: auptimizer/src/aup/Proposer/spearmint/chooser/CMAChooser.py
imports: from cma import CMAEvolutionStrategy
  from spearmint import util
  import Locker
label_desc: Use image node_id 3 for calling the CMAChooser obj's underlying member method code with example usage: obj.__del__() without return types