code: def test_ghs_generate_new_harmony():
      new_ghs = hs.GHS()
  
      search_space = search.SearchSpace(
          n_agents=2,
          n_variables=2,
          lower_bound=[0, 0],
          upper_bound=[10, 10],
      )
  
      agent = new_ghs._generate_new_harmony(search_space.agents)
  
      assert agent.fit > 0
  
      new_ghs.HMCR = 0
  
      agent = new_ghs._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 8 for calling a global function with example usage: test_ghs_generate_new_harmony() without return types