code: def _create_optObject(self, **kwargs):
          
  
          optimizer = kwargs.get('optimizer',
                                 self.config['optimizer']['optimizer'])
  
          if optimizer.upper() == 'MINUIT':
              optObject = pyLike.Minuit(self.like.logLike)
          elif optimizer.upper() == 'NEWMINUIT':
              optObject = pyLike.NewMinuit(self.like.logLike)
          else:
              optFactory = pyLike.OptimizerFactory_instance()
              optObject = optFactory.create(str(optimizer), self.like.logLike)
          return optObject
docs: Make MINUIT or NewMinuit type optimizer object