code: def test_hc_update():
      search_space = search.SearchSpace(
          n_agents=50,
          n_variables=2,
          lower_bound=[0, 0],
          upper_bound=[10, 10],
      )
  
      new_hc = hc.HC()
  
      new_hc.update(search_space)
  
file_path: opytimizer/tests/opytimizer/optimizers/misc/test_hc.py
imports: import numpy
  from opytimizer.core import function
  from opytimizer.optimizers.misc import hc
  from opytimizer.spaces import search
  from opytimizer.utils import constant
label_desc: Use image node_id 3 for calling a global function with example usage: test_hc_update() without return types