code: def test_catch_all_1():
      def objective_function(access):
          x = y
          a = 1 + "str"
          math.sqrt(-10)
          x = 1 / 0
  
          return 0, {"error": False}
  
      catch_return = (np.nan, {"error": True})
  
      hyper = Hyperactive()
      hyper.add_search(
          objective_function,
          search_space,
          n_iter=100,
          catch={
              NameError: catch_return,
              TypeError: catch_return,
              ValueError: catch_return,
              ZeroDivisionError: catch_return,
          },
      )
      hyper.run()
  
      nan_ = hyper.search_data(objective_function)["score"].values[0]
      error_ = hyper.search_data(objective_function)["error"].values[0]
  
      assert math.isnan(nan_)
      assert error_ == True
  
file_path: Hyperactive/tests/test_catch.py
imports: import copy
  import pytest
  import math
  import numpy
  import pandas
  from hyperactive import Hyperactive
label_desc: Use image node_id 6 for calling a global function with example usage: test_catch_all_1() and returns: int,  dict