code: def test_termination_cost_threshold_with_fidelities(rosenbrock):
      max_budget = 9
      termination_cost_threshold = 100
      scenario = Scenario(
          rosenbrock.configspace,
          n_trials=200,
          min_budget=1,
          max_budget=max_budget,
          termination_cost_threshold=termination_cost_threshold,
      )
      smac = MultiFidelityFacade(
          scenario,
          rosenbrock.train,
          overwrite=True,
      )
      i = smac.optimize()
  
      counter = 0
      config = None
      for c in smac.runhistory.get_configs():
          if smac.runhistory.get_cost(c) < termination_cost_threshold:
              config = c
              counter += 1
  
      # We expect only one cost below termination_cost_threshold
      assert config == i
      assert counter == 1
      assert smac.validate(i) < termination_cost_threshold
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_termination_cost_threshold_with_fidelities(rosenbrock) without return types