code: def test_abc_params_setter():
      new_abc = abc.ABC()
  
      try:
          new_abc.n_trials = 0.0
      except:
          new_abc.n_trials = 10
  
      try:
          new_abc.n_trials = 0
      except:
          new_abc.n_trials = 10
  
      assert new_abc.n_trials == 10
  
file_path: opytimizer/tests/opytimizer/optimizers/swarm/test_abc.py
imports: import numpy
  from opytimizer.optimizers.swarm import abc
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_abc_params_setter() without return types