code: def test_esa_params_setter():
      new_esa = esa.ESA()
  
      try:
          new_esa.n_electrons = "a"
      except:
          new_esa.n_electrons = 5
  
      assert new_esa.n_electrons == 5
  
      try:
          new_esa.n_electrons = -1
      except:
          new_esa.n_electrons = 5
  
      assert new_esa.n_electrons == 5
  
imports: import numpy
  from opytimizer.optimizers.science import esa
  from opytimizer.spaces import search
label_desc: Use image node_id 2 for calling a global function with example usage: test_esa_params_setter() without return types