code: def test_ssd_update_velocity():
      search_space = search.SearchSpace(
          n_agents=10,
          n_variables=2,
          lower_bound=[0, 0],
          upper_bound=[10, 10],
      )
  
      new_ssd = ssd.SSD()
      new_ssd.compile(search_space)
  
      velocity = new_ssd._update_velocity(0.5, 10, 1)
  
      assert velocity[0] != 0
  
file_path: opytimizer/tests/opytimizer/optimizers/social/test_ssd.py
imports: import numpy
  from opytimizer.optimizers.social import ssd
  from opytimizer.spaces import search
  from opytimizer.utils import constant
label_desc: Use image node_id 6 for calling a global function with example usage: test_ssd_update_velocity() without return types