code: def test_rra_stalling_search():
      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_rra = rra.RRA()
  
      new_rra._stalling_search(
          search_space.agents, square, is_large=True
      )
      new_rra._stalling_search(
          search_space.agents, square, is_large=False
      )
  
file_path: opytimizer/tests/opytimizer/optimizers/evolutionary/test_rra.py
imports: import numpy
  from opytimizer.optimizers.evolutionary import rra
  from opytimizer.spaces import search
label_desc: Use image node_id 3 for calling a global function with example usage: test_rra_stalling_search() and returns: np