code: def test_initialization_with_instances_fail(
      make_scenario, configspace_small, make_config_selector
  ):
      """Tests whether SH is initialized correctly."""
      scenario: Scenario = make_scenario(
          configspace_small,
          use_instances=True,
          n_instances=3,
          min_budget=1,
          max_budget=10,
      )
      runhistory = RunHistory()
      intensifier = SuccessiveHalving(
          scenario=scenario,
          eta=3,
          n_seeds=2,
          instance_seed_order=None,
          incumbent_selection="any_budget",
      )
      intensifier.config_selector = make_config_selector(
          scenario, runhistory, n_initial_configs=1
      )
  
      # As soon as we set the runhistory, we should get into trouble because we only may have max budget of 6
      # (3 instances * 2 seeds)
      with pytest.raises(ValueError):
          intensifier.runhistory = runhistory
          intensifier.__post_init__()
  
imports: import pytest
  from smac.initial_design.random_design import RandomInitialDesign
  from smac.intensifier.successive_halving import SuccessiveHalving
  from smac.main.config_selector import ConfigSelector
  from smac.runhistory.dataclasses import InstanceSeedBudgetKey
  from smac.runhistory.enumerations import StatusType
  from smac.runhistory.runhistory import RunHistory
  from smac.scenario import Scenario
label_desc: Use image node_id 3 for calling a global function with example usage: test_initialization_with_instances_fail(make_scenario, configspace_small, make_config_selector) without return types