code: def test_rra_params_setter():
      new_rra = rra.RRA()
  
      try:
          new_rra.d_runner = "a"
      except:
          new_rra.d_runner = 2
  
      assert new_rra.d_runner == 2
  
      try:
          new_rra.d_runner = -1
      except:
          new_rra.d_runner = 2
  
      assert new_rra.d_runner == 2
  
      try:
          new_rra.d_root = "b"
      except:
          new_rra.d_root = 0.01
  
      assert new_rra.d_root == 0.01
  
      try:
          new_rra.d_root = -1
      except:
          new_rra.d_root = 0.01
  
      assert new_rra.d_root == 0.01
  
      try:
          new_rra.tol = "c"
      except:
          new_rra.tol = 0.01
  
      assert new_rra.tol == 0.01
  
      try:
          new_rra.tol = -1
      except:
          new_rra.tol = 0.01
  
      assert new_rra.tol == 0.01
  
      try:
          new_rra.max_stall = "d"
      except:
          new_rra.max_stall = 1000
  
      assert new_rra.max_stall == 1000
  
      try:
          new_rra.max_stall = -1
      except:
          new_rra.max_stall = 1000
  
      assert new_rra.max_stall == 1000
  
      try:
          new_rra.n_stall = "e"
      except:
          new_rra.n_stall = 0
  
      assert new_rra.n_stall == 0
  
      try:
          new_rra.n_stall = -1
      except:
          new_rra.n_stall = 0
  
      assert new_rra.n_stall == 0
  
      try:
          new_rra.n_stall = 1001
      except:
          new_rra.n_stall = 0
  
      assert new_rra.n_stall == 0
  
      try:
          new_rra.last_best_fit = "e"
      except:
          new_rra.last_best_fit = 0
  
      assert new_rra.last_best_fit == 0
  
file_path: opytimizer/tests/opytimizer/optimizers/evolutionary/test_rra.py
imports: import numpy
  from opytimizer.optimizers.evolutionary import rra
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_rra_params_setter() without return types