code: def test_pso_params():
      params = {"w": 2, "c1": 1.7, "c2": 1.7}
  
      new_pso = pso.PSO(params=params)
  
      assert new_pso.w == 2
  
      assert new_pso.c1 == 1.7
  
      assert new_pso.c2 == 1.7
  
file_path: opytimizer/tests/opytimizer/optimizers/swarm/test_pso.py
imports: import numpy
  from opytimizer.optimizers.swarm import pso
  from opytimizer.spaces import search
label_desc: Use image node_id 1 for calling a global function with example usage: test_pso_params() without return types