code: def update_search_space(self, search_space):
          
          self.json = search_space
          search_space_instance = json2space(self.json)
          rstate = np.random.RandomState()
          trials = hp.Trials()
          domain = hp.Domain(None, search_space_instance,
                             pass_expr_memo_ctrl=None)
          algorithm = self._choose_tuner(self.algorithm_name)
          self.rval = hp.FMinIter(algorithm, domain, trials,
                                  max_evals=-1, rstate=rstate, verbose=0)
          self.rval.catch_eval_exceptions = False
docs: Update search space definition in tuner by search_space in parameters.
  
          Will called when first setup experiemnt or update search space in WebUI.
  
          Parameters
          ----------
          search_space : dict