code: def test_catch_0():
      def objective_function(access):
          x = y
  
          return 0
  
      hyper = Hyperactive()
      hyper.add_search(
          objective_function,
          search_space,
          n_iter=100,
          catch={NameError: np.nan},
      )
      hyper.run()
  
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 1 for calling a global function with example usage: test_catch_0() and returns: int