code: def test_fpa_params_setter():
      new_fpa = fpa.FPA()
  
      try:
          new_fpa.beta = "a"
      except:
          new_fpa.beta = 0.75
  
      try:
          new_fpa.beta = -1
      except:
          new_fpa.beta = 0.75
  
      assert new_fpa.beta == 0.75
  
      try:
          new_fpa.eta = "b"
      except:
          new_fpa.eta = 1.5
  
      try:
          new_fpa.eta = -1
      except:
          new_fpa.eta = 1.5
  
      assert new_fpa.eta == 1.5
  
      try:
          new_fpa.p = "c"
      except:
          new_fpa.p = 0.25
  
      try:
          new_fpa.p = -1
      except:
          new_fpa.p = 0.25
  
      assert new_fpa.p == 0.25
  
file_path: opytimizer/tests/opytimizer/optimizers/swarm/test_fpa.py
imports: import numpy
  from opytimizer.optimizers.swarm import fpa
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_fpa_params_setter() without return types