code: def __load_checkpoint(self):
      if self.config["load_checkpoint_file"] is None:
          return
      try:
          checkpoint_file = os.path.abspath(
              os.path.expanduser(self.config["load_checkpoint_file"])
          )
          with open(checkpoint_file) as f:
              old_cmaes_instance = pickle.load(f)
      except BaseException:
          self.logger.warn("Checkpoint file cannot be loaded")
          raise
  
      for h, h_old in zip(
          self.hyperparameters, old_cmaes_instance.hyperparameters
      ):
          assert h.is_compatible(h_old)
  
      if self.config["cmaes_config"]["load_best_only"]:
          self.init = old_cmaes_instance.best[1]
          self.es = cma.CMAEvolutionStrategy(
              self.init, self.sigma, self.opts
          )
          self.logger.info("Loaded best solution as init")
      else:
          logger = self.logger
          config = self.config
          self.__dict__ = old_cmaes_instance.__dict__
          self.logger = logger
          self.config = config
  
      self.logger.info(
          "Loaded checkpoint from file: %s" % checkpoint_file
      )
  
imports: import cma
  import random
  import copy
  import pickle
  import os
  import pprint
  import time
  import six
  import numpy
  from opt_util import EPSILON
label_desc: Use image node_id 9 for calling the Optimizer obj's underlying member method code with example usage: obj.__load_checkpoint() without return types