code: def test_af_params_setter():
      new_af = af.AF()
  
      try:
          new_af.c1 = "a"
      except:
          new_af.c1 = 0.75
  
      assert new_af.c1 == 0.75
  
      try:
          new_af.c1 = -1
      except:
          new_af.c1 = 0.75
  
      assert new_af.c1 == 0.75
  
      try:
          new_af.c2 = "b"
      except:
          new_af.c2 = 1.25
  
      assert new_af.c2 == 1.25
  
      try:
          new_af.c2 = -1
      except:
          new_af.c2 = 1.25
  
      assert new_af.c2 == 1.25
  
      try:
          new_af.m = "c"
      except:
          new_af.m = 10
  
      assert new_af.m == 10
  
      try:
          new_af.m = 0
      except:
          new_af.m = 10
  
      assert new_af.m == 10
  
      try:
          new_af.Q = "d"
      except:
          new_af.Q = 0.75
  
      assert new_af.Q == 0.75
  
      try:
          new_af.Q = -1
      except:
          new_af.Q = 0.75
  
      assert new_af.Q == 0.75
  
imports: import numpy
  from opytimizer.optimizers.swarm import af
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_af_params_setter() without return types