code: def test_n_random_starts_Optimizer():
      # n_random_starts got renamed in v0.4
      et = ExtraTreesRegressor(random_state=2)
      with pytest.deprecated_call():
          Optimizer(
              [(0, 1.0)],
              et,
              n_random_starts=10,
              acq_optimizer="sampling",
          )
  
file_path: scikit-optimize/skopt/tests/test_deprecation.py
imports: from functools import partial
  from itertools import product
  import pytest
  from skopt import gp_minimize
  from skopt import forest_minimize
  from skopt import gbrt_minimize
  from skopt import Optimizer
  from skopt.learning import ExtraTreesRegressor
label_desc: Use image node_id 1 for calling a global function with example usage: test_n_random_starts_Optimizer() without return types