docstr: Copied from https://github.com/automl/HpBandSter/blob/master/hpbandster/optimizers/bohb.py
          
docstr_tok: ["Copied","from","https",":","\/\/github.com\/automl\/HpBandSter\/blob\/master\/hpbandster\/optimizers\/bohb.py"]
code: def get_next_iteration(self, iteration, iteration_kwargs={}):
      """Copied from https://github.com/automl/HpBandSter/blob/master/hpbandster/optimizers/bohb.py"""
      s = self.max_SH_iter - 1 - (iteration % self.max_SH_iter)
      n0 = int(np.floor(self.max_SH_iter / (s + 1)) * self.eta**s)
      ns = [max(int(n0 * (self.eta ** (-i))), 1) for i in range(s + 1)]
      return SuccessiveHalving(
          HPB_iter=iteration,
          num_configs=ns,
          budgets=self.budgets[(-s - 1) :],
          config_sampler=self.config_generator.get_config,
          **iteration_kwargs,
      )
  
imports: import logging
  import numpy
  from six.moves import input
  from six import PY3
  from .AbstractProposer import AbstractProposer
  from .None import ProposerStatus
  from ..utils import set_default_keyvalue
  from .hpbandster.optimizers.bohb import BOHB
  from .hpbandster.optimizers.iterations import SuccessiveHalving
  import ConfigSpace
  from hpbandster.optimizers.config_generators.bohb import BOHB
  from hpbandster.core.dispatcher import Job
label_desc: Use image node_id 5 for calling the BOHBProposer obj's underlying member method code with example usage: obj.get_next_iteration(iteration, iteration_kwargs) and returns: SuccessiveHalving