code: def test_initialize_grid_1():
      search_space = {
          "x1": list(np.arange(-2, 3, 1)),
      }
  
      initialize = {"grid": 1}
  
      hyper = Hyperactive()
      hyper.add_search(
          objective_function,
          search_space,
          n_iter=1,
          initialize=initialize,
      )
      hyper.run()
  
      assert abs(hyper.best_score(objective_function)) - 1 < 0.001
  
file_path: Hyperactive/tests/test_initializers.py
imports: import numpy
  from hyperactive import Hyperactive
label_desc: Use image node_id 6 for calling a global function with example usage: test_initialize_grid_1() without return types