code: def test_efo_params():
      params = {
          "positive_field": 0.1,
          "negative_field": 0.5,
          "ps_ratio": 0.1,
          "r_ratio": 0.4,
      }
  
      new_efo = efo.EFO(params=params)
  
      assert new_efo.positive_field == 0.1
  
      assert new_efo.negative_field == 0.5
  
      assert new_efo.ps_ratio == 0.1
  
      assert new_efo.r_ratio == 0.4
  
      assert new_efo.phi == (1 + np.sqrt(5)) / 2
  
      assert new_efo.RI == 0
  
imports: import numpy
  from opytimizer.optimizers.science import efo
  from opytimizer.spaces import search
label_desc: Use image node_id 1 for calling a global function with example usage: test_efo_params() without return types