code: def test_pio_params_setter():
      new_pio = pio.PIO()
  
      try:
          new_pio.n_c1 = 0.0
      except:
          new_pio.n_c1 = 150
  
      try:
          new_pio.n_c1 = 0
      except:
          new_pio.n_c1 = 150
  
      assert new_pio.n_c1 == 150
  
      try:
          new_pio.n_c2 = 0.0
      except:
          new_pio.n_c2 = 200
  
      try:
          new_pio.n_c2 = 0
      except:
          new_pio.n_c2 = 200
  
      assert new_pio.n_c2 == 200
  
      try:
          new_pio.R = "a"
      except:
          new_pio.R = 0.2
  
      try:
          new_pio.R = -1
      except:
          new_pio.R = 0.2
  
      assert new_pio.R == 0.2
  
file_path: opytimizer/tests/opytimizer/optimizers/swarm/test_pio.py
imports: import numpy
  from opytimizer.optimizers.swarm import pio
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_pio_params_setter() without return types