code: def test_hgso_update_position():
      search_space = search.SearchSpace(
          n_agents=10,
          n_variables=2,
          lower_bound=[0, 0],
          upper_bound=[10, 10],
      )
  
      new_hgso = hgso.HGSO()
      new_hgso.compile(search_space)
  
      position = new_hgso._update_position(
          search_space.agents[0],
          search_space.agents[1],
          search_space.best_agent,
          0.5,
      )
  
      assert position[0][0] != 0
  
file_path: opytimizer/tests/opytimizer/optimizers/science/test_hgso.py
imports: import numpy
  from opytimizer.optimizers.science import hgso
  from opytimizer.spaces import search
label_desc: Use image node_id 4 for calling a global function with example usage: test_hgso_update_position() without return types