code: def test_imputation_conditional_spaces(self):
      bohb = BOHB(self.configspace, random_fraction=0)
  
      raw_array = []
  
      for i in range(128):
          config = self.configspace.sample_configuration()
          raw_array.append(config.get_array())
          imputed_array = bohb.impute_conditional_data(
              np.array(raw_array)
          )
          self.assertFalse(np.any(np.isnan(imputed_array)))
          job = Job(i, budget=1, config=config)
          job.result = {"loss": np.random.rand(), "info": {}}
          bohb.new_result(job)
  
      for j in range(64):
          conf, info = bohb.get_config(1)
          self.assertTrue(info["model_based_pick"])
  
file_path: HpBandSter/tests/test_config_generators.py
imports: import os
  import unittest
  import numpy
  import ConfigSpace
  from hpbandster.optimizers.config_generators.bohb import BOHB
  from hpbandster.core.dispatcher import Job
label_desc: Use image node_id 3 for calling the TestBinaryRssRegressionForest obj's underlying member method code with example usage: obj.test_imputation_conditional_spaces() without return types