code: def test_ao_params_setter():
      new_ao = ao.AO()
  
      try:
          new_ao.alpha = "a"
      except:
          new_ao.alpha = 0.1
  
      try:
          new_ao.alpha = -1
      except:
          new_ao.alpha = 0.1
  
      assert new_ao.alpha == 0.1
  
      try:
          new_ao.delta = "b"
      except:
          new_ao.delta = 0.1
  
      try:
          new_ao.delta = -1
      except:
          new_ao.delta = 0.1
  
      try:
          new_ao.n_cycles = "c"
      except:
          new_ao.n_cycles = 10
  
      try:
          new_ao.n_cycles = -1
      except:
          new_ao.n_cycles = 10
  
      assert new_ao.n_cycles == 10
  
      try:
          new_ao.U = "d"
      except:
          new_ao.U = 0.00565
  
      try:
          new_ao.U = -1
      except:
          new_ao.U = 0.00565
  
      assert new_ao.U == 0.00565
  
      try:
          new_ao.w = "e"
      except:
          new_ao.w = 0.005
  
      try:
          new_ao.w = -1
      except:
          new_ao.w = 0.005
  
      assert new_ao.w == 0.005
  
imports: import numpy
  from opytimizer.optimizers.population import ao
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_ao_params_setter() without return types