code: def test_sca_params_setter():
      new_sca = sca.SCA()
  
      try:
          new_sca.r_min = "a"
      except:
          new_sca.r_min = 0.1
  
      try:
          new_sca.r_min = -1
      except:
          new_sca.r_min = 0.1
  
      assert new_sca.r_min == 0.1
  
      try:
          new_sca.r_max = "b"
      except:
          new_sca.r_max = 2
  
      try:
          new_sca.r_max = -1
      except:
          new_sca.r_max = 2
  
      try:
          new_sca.r_max = 0
      except:
          new_sca.r_max = 2
  
      assert new_sca.r_max == 2
  
      try:
          new_sca.a = "c"
      except:
          new_sca.a = 0.5
  
      try:
          new_sca.a = -1
      except:
          new_sca.a = 0.5
  
      assert new_sca.a == 0.5
  
imports: import numpy
  from opytimizer.optimizers.swarm import sca
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_sca_params_setter() without return types