class_docstr: A specialized wrapper for the automlbenchmark framework.
  Abstracts the different behaviors of tuners and advisors into a tuner API. 
class_docstr_tok: ["A","specialized","wrapper","for","the","automlbenchmark","framework",".","Abstracts","the","different","behaviors","of","tuners","and","advisors","into","a","tuner","API","."]
code: def update_search_space(self, search_space):
      if self.core_type == "tuner":
          self.core.update_search_space(search_space)
  
      elif self.core_type == "advisor":
          self.core.handle_update_search_space(search_space)
          # special initializations for BOHB Advisor
          from nni.algorithms.hpo.hyperband_advisor import Hyperband
  
          if isinstance(self.core, Hyperband):
              pass
          else:
              from nni.algorithms.hpo.bohb_advisor.bohb_advisor import (
                  BOHB,
              )
              from nni.algorithms.hpo.bohb_advisor.config_generator import (
                  CG_BOHB,
              )
  
              if isinstance(self.core, BOHB):
                  self.core.cg = CG_BOHB(
                      configspace=self.core.search_space,
                      min_points_in_model=self.core.min_points_in_model,
                      top_n_percent=self.core.top_n_percent,
                      num_samples=self.core.num_samples,
                      random_fraction=self.core.random_fraction,
                      bandwidth_factor=self.core.bandwidth_factor,
                      min_bandwidth=self.core.min_bandwidth,
                  )
                  self.core.generate_new_bracket()
  
file_path: nni/examples/trials/benchmarking/automlbenchmark/nni/extensions/NNI/tuners.py
imports: import os
  import yaml
  import importlib
  import nni
  from nni.runtime.config import get_config_file
  from nni.utils import MetricType
  from nni.tuner import Tuner
  from nni.runtime.msg_dispatcher_base import MsgDispatcherBase
  from amlb.benchmark import TaskConfig
label_desc: Use image node_id 3 for calling the NNITuner obj's underlying member method code with example usage: obj.update_search_space(search_space) without return types