code: def test_search_space_2():
      def objective_function(opt):
          score = -opt["x1"] * opt["x1"]
          return score
  
      search_space = {
          "x1": list(range(0, 100, 1)),
          "str1": ["0", "1", "2"],
      }
  
      hyper = Hyperactive()
      hyper.add_search(
          objective_function,
          search_space,
          n_iter=15,
      )
      hyper.run()
  
      assert isinstance(
          hyper.search_data(objective_function), pd.DataFrame
      )
      assert (
          hyper.best_para(objective_function)["str1"]
          in search_space["str1"]
      )
  
file_path: Hyperactive/tests/test_search_spaces.py
imports: import numpy
  import pandas
  from hyperactive import Hyperactive
label_desc: Use image node_id 3 for calling a global function with example usage: test_search_space_2() and returns: score