code: def test_local_and_random_search(configspace, acquisition_function):
      start_points = configspace.sample_configuration(100)
      rs = LocalAndSortedRandomSearch(
          configspace, acquisition_function, challengers=1000
      )
      assert rs.acquisition_function == acquisition_function
      assert (
          rs._random_search.acquisition_function == acquisition_function
      )
      assert (
          rs._local_search.acquisition_function == acquisition_function
      )
  
      values = rs._maximize(start_points, 100)
      config_origins = []
      v_old = np.inf
      for v, config in values:
          config_origins += [config.origin]
          if isinstance(v, np.ndarray):
              v = float(v[0])
  
          assert v_old >= v
          v_old = v
  
      assert (
          "Acquisition Function Maximizer: Random Search (sorted)"
          in config_origins
      )
      assert (
          "Acquisition Function Maximizer: Local Search"
          in config_origins
      )
  
imports: from __future__ import annotations
  from typing import Any
  import os
  import unittest
  import unittest.mock
  import numpy
  import pytest
  from ConfigSpace import Categorical, Configuration, ConfigurationSpace, EqualsCondition, Float, InCondition, Integer
  from ConfigSpace.hyperparameters import BetaIntegerHyperparameter, CategoricalHyperparameter, NormalFloatHyperparameter, UniformFloatHyperparameter, UniformIntegerHyperparameter
  from ConfigSpace.read_and_write import pcs
  from scipy.spatial.distance import euclidean
  from smac.acquisition.function import EI
  from smac.acquisition.maximizer import DifferentialEvolution, LocalAndSortedPriorRandomSearch, LocalAndSortedRandomSearch, LocalSearch, RandomSearch
  from smac.model.random_forest.random_forest import RandomForest
  from smac.runhistory.runhistory import RunHistory
  from smac.runner.abstract_runner import StatusType
label_desc: Use image node_id 14 for calling a global function with example usage: test_local_and_random_search(configspace, acquisition_function) without return types