code: def test_sghs_generate_new_harmony():
      search_space = search.SearchSpace(
          n_agents=2,
          n_variables=2,
          lower_bound=[0, 0],
          upper_bound=[10, 10],
      )
  
      new_sghs = hs.SGHS()
      new_sghs.compile(search_space)
  
      agent = new_sghs._generate_new_harmony(search_space.agents)
  
      assert agent.fit > 0
  
      new_sghs.HMCR = 0
  
      agent = new_sghs._generate_new_harmony(search_space.agents)
  
      assert agent.fit > 0
  
imports: import numpy
  from opytimizer.core import function
  from opytimizer.optimizers.evolutionary import hs
  from opytimizer.spaces import search
  from opytimizer.utils import constant
label_desc: Use image node_id 12 for calling a global function with example usage: test_sghs_generate_new_harmony() without return types