code: def test_ga_params_setter():
      new_ga = ga.GA()
  
      try:
          new_ga.p_selection = "a"
      except:
          new_ga.p_selection = 0.75
  
      try:
          new_ga.p_selection = -1
      except:
          new_ga.p_selection = 0.75
  
      assert new_ga.p_selection == 0.75
  
      try:
          new_ga.p_mutation = "b"
      except:
          new_ga.p_mutation = 0.25
  
      try:
          new_ga.p_mutation = -1
      except:
          new_ga.p_mutation = 0.25
  
      assert new_ga.p_mutation == 0.25
  
      try:
          new_ga.p_crossover = "c"
      except:
          new_ga.p_crossover = 0.5
  
      try:
          new_ga.p_crossover = -1
      except:
          new_ga.p_crossover = 0.5
  
      assert new_ga.p_crossover == 0.5
  
file_path: opytimizer/tests/opytimizer/optimizers/evolutionary/test_ga.py
imports: import numpy
  from opytimizer.optimizers.evolutionary import ga
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_ga_params_setter() without return types