code: def test_rfo_params():
      params = {
          "phi": r.generate_uniform_random_number(0, 2 * np.pi)[0],
          "theta": r.generate_uniform_random_number()[0],
          "p_replacement": 0.05,
      }
  
      new_rfo = rfo.RFO(params=params)
  
      assert 0 <= new_rfo.phi <= 2 * np.pi
  
      assert 0 <= new_rfo.theta <= 1
  
      assert new_rfo.p_replacement == 0.05
  
file_path: opytimizer/tests/opytimizer/optimizers/population/test_rfo.py
imports: import numpy
  import opytimizer.math.random
  from opytimizer.optimizers.population import rfo
  from opytimizer.spaces import search
label_desc: Use image node_id 1 for calling a global function with example usage: test_rfo_params() without return types