code: def test_two_constraint_handle():
      def square(x):
          return np.sum(x**2)
  
      search_space = search.SearchSpace(
          n_agents=10,
          n_variables=2,
          lower_bound=[0, 0],
          upper_bound=[10, 10],
      )
  
      new_two = two.TWO()
  
      new_two._constraint_handle(
          search_space.agents, search_space.best_agent, square, 1
      )
  
imports: import numpy
  from opytimizer.optimizers.science import two
  from opytimizer.spaces import search
label_desc: Use image node_id 3 for calling a global function with example usage: test_two_constraint_handle() and returns: np