code: def test_error_conditions(load_setup, load_models):
      """Tests error conditions for blend_models"""
      exp = load_setup
      models = load_models
      random.seed(42)
      weights = [random.uniform(0, 1) for _ in range(len(models))]
  
      with pytest.raises(ValueError) as err_msg:
          _ = exp.blend_models(models, method="voting", weights=weights)
  
      exception_msg = err_msg.value.args[0]
      assert (
          "method 'voting' is not supported from pycaret 3.0.1"
          in exception_msg
      )
  
file_path: pycaret/tests/test_time_series_blending.py
imports: import random
  import numpy
  import pandas
  import pytest
  from pycaret.datasets import get_data
  from pycaret.time_series import TSForecastingExperiment
label_desc: Use image node_id 6 for calling a global function with example usage: test_error_conditions(load_setup, load_models) without return types