code: def test_opt_pro_set_experiment_guidelines_calls_forge_experiment(
      opt_pro, forge_experiment_params
  ):
      """Check that invoking an OptPro's :meth:`set_experiment_guidelines` (although deprecated)
      invokes the new :meth:`forge_experiment` with the parameters originally given
      """
      opt = opt_pro()
      mock_path = "hyperparameter_hunter.optimization.protocol_core.BaseOptPro.forge_experiment"
  
      with pytest.deprecated_call():
          with mock.patch(mock_path) as mock_forge_experiment:
              opt.set_experiment_guidelines(**forge_experiment_params)
              mock_forge_experiment.assert_called_once_with(
                  **forge_experiment_params
              )
  
imports: from hyperparameter_hunter import Environment
  from hyperparameter_hunter import settings
  from hyperparameter_hunter.i_o.exceptions import EnvironmentInactiveError, EnvironmentInvalidError
  from hyperparameter_hunter.optimization.backends.skopt import protocols
  from hyperparameter_hunter.utils.general_utils import flatten, subdict
  from hyperparameter_hunter.utils.learning_utils import get_toy_classification_data
  import pytest
  from unittest import mock
  from sklearn.linear_model import Ridge
  from skopt.learning.gaussian_process.gpr import GaussianProcessRegressor
  from skopt.learning.gbrt import GradientBoostingQuantileRegressor
  from skopt.learning.forest import RandomForestRegressor, ExtraTreesRegressor
label_desc: Use image node_id 10 for calling a global function with example usage: test_opt_pro_set_experiment_guidelines_calls_forge_experiment(opt_pro, forge_experiment_params) without return types