code: def test_init(make_scenario):
      scenario = make_scenario(
          configspace=_test_helpers.get_branin_config_space(),
      )
      tae = lambda x: x
      with pytest.raises(ValueError) as excinfo:
          BOinGFacade(
              scenario=scenario,
              target_function=tae,
              model=BlackBoxFacade.get_model(scenario),
          )
          assert (
              excinfo.values
              == "BOinG only supports RandomForestWithInstances as its global optimizer"
          )
  
      with pytest.raises(ValueError) as excinfo:
          BOinGFacade(
              scenario=scenario,
              target_function=tae,
              runhistory_encoder=HyperparameterOptimizationFacade.get_runhistory_encoder(
                  scenario
              ),
          )
          assert (
              excinfo.values
              == "BOinG only supports RunHistory2EPM4CostWithRaw as its rh transformer"
          )
  
      facade = BOinGFacade(
          scenario=scenario, target_function=tae, overwrite=True
      )
      assert not hasattr(facade._optimizer, "turbo_optimizer")
  
file_path: SMAC3/tests/test_main/_test_boing.py
imports: from unittest.mock import patch
  import numpy
  import pytest
  from ConfigSpace import CategoricalHyperparameter, ConfigurationSpace, UniformFloatHyperparameter
  import smac
  from smac.facade.blackbox_facade import BlackBoxFacade
  from smac.facade.hyperparameter_optimization_facade import HyperparameterOptimizationFacade
  from smac.facade.old.boing_facade import BOinGFacade
  from smac.main.boing import subspace_extraction
  from smac.model.random_forest.random_forest import RandomForest
  from smac.model.utils import check_subspace_points, get_types
  from smac.runhistory.runhistory import RunHistory
  from smac.runner.abstract_runner import StatusType
  from smac.utils import _test_helpers
label_desc: Use image node_id 1 for calling a global function with example usage: test_init(make_scenario) without return types